Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:46:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xol_free_insn_slot - If slot was earlier allocated by*@xol_get_insn_slot(), make the slot available for* subsequent requests.

Proto:static void xol_free_insn_slot(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
1642  If Not mm || Not xol_area || Not utask Then Return
1645  slot_addr = xol_vaddr
1646  If Value for the false possibility is greater at compile time(!slot_addr) Then Return
1649  area = xol_area
1650  vma_end = Page(s) of instruction slots + PAGE_SIZE
1651  If Page(s) of instruction slots <= slot_addr && slot_addr < vma_end Then
1655  offset = slot_addr - Page(s) of instruction slots
1656  slot_nr = offset / keep it cache aligned
1657  If slot_nr >= UINSNS_PER_PAGE Then Return
1660  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
1661  atomic_dec( & umber of in-use slots )
1662  smp_mb__after_atomic()
1663  If waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ Then wake_up( & all slots are busy )
1666  xol_vaddr = 0
Caller
NameDescribe
uprobe_free_utaskCalled with no locks held.* Called in context of an exiting or an exec-ing thread.
pre_ssoutPrepare to single-step probed instruction out of line.
handle_singlestepPerform required fix-ups and disable singlestep.* Allow pending signals to take effect.