Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:45:17
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 uprobe *uprobe, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct uprobe *uprobe
struct file *filp
821  mapping = i_mapping
822  offs = offset
823  insn = insn
824  size = size of insn
825  err = -EIO
828  Do
829  If 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 Then Break
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  If err Then Break
837  insn += len
838  offs += len
839  size -= len
840  When size cycle
842  Return err
Caller
NameDescribe
prepare_uprobe