函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)

返回类型:char

参数:

类型参数名称
const char *s
size_tlen
gfp_tgfp
147  如果非s则返回:NULL
150  buf等于kmalloc_track_caller(len + 1, gfp)
151  如果buf
152  内存复制(buf, s, len)
153  buf[len]等于'\0'
155  返回:buf
调用者
名称描述
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
match_strdupmatch_strdup: - allocate a new string with the contents of a substring_t*@s: &substring_t to copy* Description: Allocates and returns a string filled with the contents of* the &substring_t @s. The caller is responsible for freeing the returned
append_filter_err
selinux_add_mnt_opt
vfs_parse_fs_stringvfs_parse_fs_string - Convenience function to just parse a string.