函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_insn

函数原型:static int copy_insn(struct uprobe *uprobe, struct file *filp)

返回类型:int

参数:

类型参数名称
struct uprobe *uprobe
struct file *filp
821  mapping等于i_mapping
822  offs等于offset
823  insn等于insn
824  size等于insn的长度
825  err等于负EIO
828  循环
829  如果offs大于等于NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they 退出
832  len等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, size, PAGE_SIZE - (offs & ~PAGE_MASK))
833  err等于__copy_insn(mapping, filp, insn, len, offs)
834  如果err退出
837  insn加等于len
838  offs加等于len
839  size减等于len
840 size循环
842  返回:err
调用者
名称描述
prepare_uprobe