函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Look up a kernel symbol and return it in a text buffer.

函数原型:static int __sprint_symbol(char *buffer, unsigned long address, int symbol_offset, int add_offset)

返回类型:int

参数:

类型参数名称
char *buffer
unsigned longaddress
intsymbol_offset
intadd_offset
363  address加等于symbol_offset
364  name等于Lookup an address* - modname is set to NULL if it's in the kernel.* - We guarantee that the returned name is valid until we reschedule even if.* It resides in a module.* - We also guarantee that modname will be valid until rescheduled.
365  如果非name则返回:输出格式化串
368  如果name不等于bufferstrcpy(buffer, name)
370  len等于strlen - Find the length of a string*@s: The string to be sized
371  offset减等于symbol_offset
373  如果add_offsetlen加等于输出格式化串
376  如果modnamelen加等于输出格式化串
379  返回:len
调用者
名称描述
sprint_symbolsprint_symbol - Look up a kernel symbol and return it in a text buffer*@buffer: buffer to be stored*@address: address to lookup* This function looks up a kernel symbol with @address and stores its name,* offset, size and module name to @buffer if possible
sprint_symbol_no_offsetsprint_symbol_no_offset - Look up a kernel symbol and return it in a text buffer*@buffer: buffer to be stored*@address: address to lookup* This function looks up a kernel symbol with @address and stores its name* and module name to @buffer if possible
sprint_backtracesprint_backtrace - Look up a backtrace symbol and return it in a text buffer*@buffer: buffer to be stored*@address: address to lookup* This function is for stack backtrace and does the same thing as* sprint_symbol() but with modified/decreased @address