Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__copy_insn

Proto:static int __copy_insn(struct address_space *mapping, struct file *filp, void *insn, int nbytes, loff_t offset)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
struct file *filp
void *insn
intnbytes
loff_toffset
806  If readpage Then page = read_mapping_page(mapping, offset >> PAGE_SHIFT determines the page size , filp)
808  Else page = shmem_read_mapping_page(mapping, offset >> PAGE_SHIFT determines the page size )
810  If IS_ERR(page) Then Return PTR_ERR(page)
813  copy_from_page(page, offset, insn, nbytes)
814  put_page(page)
816  Return 0
Caller
NameDescribe
copy_insn