Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_support.c Create Date:2022-07-28 11:43:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:char *kdb_strdup(const char *str, gfp_t type)

Type:char

Parameter:

TypeParameterName
const char *str
gfp_ttype
309  n = strlen - Find the length of a string*@s: The string to be sized + 1
310  s = Allocation memory
311  If Not s Then Return NULL
313  Return strcpy(s, str)
Caller
NameDescribe
kdb_defcmd