函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns allocated NULL-terminated string containing pathname,* with special characters escaped, able to be safely logged. If* there is an error, the leading character will be "<".

函数原型:char *kstrdup_quotable_file(struct file *file, gfp_t gfp)

返回类型:char

参数:

类型参数名称
struct file *file
gfp_tgfp
634  如果非file则返回:kstrdup("<unknown>", gfp)
638  temp等于kmalloc(# chars in a path name including nul + 11, GFP_KERNEL)
639  如果非temp则返回:kstrdup("<no_memory>", gfp)
642  pathname等于file_path(file, temp, # chars in a path name including nul + 11)
643  如果是错误pathname等于kstrdup("<too_long>", gfp)
645  否则pathname等于Return an allocated string that has been escaped of special characters* and double quotes, making it safe to log in quotes.
648  kfree(temp)
649  返回:pathname
调用者
名称描述
report_load