Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:@vma contains reference counter, not the probed instruction.

Proto:static int delayed_ref_ctr_inc(struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
1334  ret = 0 , err = 0
1336  mutex_lock( & delayed_uprobe_lock)
1338  du = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(pos, structdelayed_uprobe, list)
1340  If mm != The address space we belong to. || Not valid_ref_ctr_vma(uprobe, vma) Then Continue
1344  vaddr = offset_to_vaddr(vma, ref_ctr_offset)
1345  ret = __update_ref_ctr(The address space we belong to. , vaddr, 1)
1346  If ret Then
1347  update_ref_ctr_warn(uprobe, The address space we belong to. , 1)
1348  If Not err Then err = ret
1351  delayed_uprobe_delete(du)
1353  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1354  Return err
Caller
NameDescribe
uprobe_mmapCalled from mmap_region/vma_adjust with mm->mmap_sem acquired.* Currently we ignore all errors and always return 0, the callers* can't handle the failure anyway.