Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:44
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static kprobe_opcode_t *_kprobe_addr(kprobe_opcode_t *addr, const char *symbol_name, unsigned int offset)

Type:kprobe_opcode_t

Parameter:

TypeParameterName
kprobe_opcode_t *addr
const char *symbol_name
unsigned intoffset
1475  If symbol_name && addr || Not symbol_name && Not addr Then Go to invalid
1478  If symbol_name Then
1479  addr = kprobe_lookup_name(symbol_name, offset)
1480  If Not addr Then Return ERR_PTR( - ENOENT)
1484  addr = addr + offset
1485  If addr Then Return addr
1488  invalid :
1489  Return ERR_PTR( - EINVAL)
Caller
NameDescribe
kprobe_addr