函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_strdup - kdb equivalent of strdup, for disasm code.* Inputs:* str The string to duplicate.* type Flags to kmalloc for the new string.* Returns:* Address of the new string, NULL if storage could not be allocated.* Remarks:* This is not in lib/string

函数原型:char *kdb_strdup(const char *str, gfp_t type)

返回类型:char

参数:

类型参数名称
const char *str
gfp_ttype
309  n等于strlen - Find the length of a string*@s: The string to be sized加1
310  s等于开辟内存
311  如果非s则返回:NULL
313  返回:strcpy(s, str)
调用者
名称描述
kdb_defcmd
kdb_defcmd2