函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:06:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__copy_insn

函数原型:static int __copy_insn(struct address_space *mapping, struct file *filp, void *insn, int nbytes, loff_t offset)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct file *filp
void *insn
intnbytes
loff_toffset
806  如果readpagepage等于read_mapping_page(mapping, offset >> PAGE_SHIFT determines the page size , filp)
808  否则page等于shmem_read_mapping_page(mapping, offset >> PAGE_SHIFT determines the page size )
810  如果是错误则返回:错误
813  copy_from_page(page, offset, insn, nbytes)
814  put_page(page)
816  返回:0
调用者
名称描述
copy_insn