Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:offset_to_vaddr

Proto:static unsigned long offset_to_vaddr(struct vm_area_struct *vma, loff_t offset)

Type:unsigned long

Parameter:

TypeParameterName
struct vm_area_struct *vma
loff_toffset
133  Return Our start address within vm_mm. + offset - (Offset (within vm_file) in PAGE_SIZEunits << PAGE_SHIFT determines the page size )
Caller
NameDescribe
valid_ref_ctr_vma
update_ref_ctr
build_map_info
unapply_uprobe
delayed_ref_ctr_inc@vma contains reference counter, not the probed instruction.
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.