Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\report.c Create Date:2022-07-28 15:52:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tokenize_frame_descr

Proto:static bool __must_check tokenize_frame_descr(const char **frame_descr, char *token, size_t max_tok_len, unsigned long *value)

Type:bool

Parameter:

TypeParameterName
const char **frame_descr
char *token
size_tmax_tok_len
unsigned long *value
212  sep = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
214  If (sep == NULL) Then sep = frame_descr + strlen - Find the length of a string*@s: The string to be sized
217  If (token != NULL) Then
218  tok_len = sep - frame_descr
220  If tok_len + 1 > max_tok_len Then
221  pr_err("KASAN internal error: frame description too long: %s\n", * frame_descr)
223  Return false
227  Copy a NUL terminated string into a sized buffer
231  frame_descr = sep + 1
233  If value != NULL && kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign. Then
234  pr_err("KASAN internal error: not a valid number: %s\n", token)
235  Return false
238  Return true
Caller
NameDescribe
print_decoded_frame_descr