Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmemdup_nul - Create a NUL-terminated string from unterminated data*@s: The data to stringify*@len: The size of the data*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s with NUL-termination or %NULL

Proto:char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)

Type:char

Parameter:

TypeParameterName
const char *s
size_tlen
gfp_tgfp
147  If Not s Then Return NULL
150  buf = kmalloc_track_caller(len + 1, gfp)
151  If buf Then
152  No 3D Now!(buf, s, len)
153  buf[len] = '\0'
155  Return buf
Caller
NameDescribe
parse_predCalled when a predicate is encountered by predicate_parse()
parse_field
parse_synth_field
traceprobe_parse_probe_arg
selinux_sb_eat_lsm_opts
smack_sb_eat_lsm_opts