函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_trace_snprint - Print the entries in the stack trace into a buffer*@buf: Pointer to the print buffer*@size: Size of the print buffer*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading

函数原型:int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, unsigned int nr_entries, int spaces)

返回类型:int

参数:

类型参数名称
char *buf
size_tsize
const unsigned long *entries
unsigned intnr_entries
intspaces
49  total等于0
51  如果WARN_ON(!entries)则返回:0
54 i小于nr_entriessize循环
55  generated等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
58  total加等于generated
59  如果generated大于等于size
60  buf加等于size
61  size等于0
62  否则
63  buf加等于generated
64  size减等于generated
68  返回:total
调用者
名称描述
print_page_owner