函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:39:30
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:If we have a symbol_name argument, look it up and add the offset field* to it. This way, we can specify a relative address to a symbol.* This returns encoded errors if it fails to look up symbol or invalid* combination of parameters.

函数原型:static kprobe_opcode_t *_kprobe_addr(kprobe_opcode_t *addr, const char *symbol_name, unsigned int offset)

返回类型:kprobe_opcode_t

参数:

类型参数名称
kprobe_opcode_t *addr
const char *symbol_name
unsigned intoffset
1475  如果symbol_nameaddr或非symbol_name且非addr则转到:invalid
1478  如果symbol_name
1479  addr等于kprobe_lookup_name(symbol_name, offset)
1480  如果非addr则返回:错误号
1484  addr等于addroffset
1485  如果addr则返回:addr
1488  invalid :
1489  返回:错误号
调用者
名称描述
kprobe_addr