函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:34:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:putname

函数原型:void putname(struct filename *name)

返回类型:void

参数:

类型参数名称
struct filename *name
250  BUG_ON(refcnt <= 0)
252  如果refcnt先自减大于0则返回
255  如果 pointer to actual string 不等于iname
256  __putname( pointer to actual string )
257  释放内存
258  否则__putname(name)
调用者
名称描述
audit_free_names
bpf_obj_pin_user
bpf_obj_get_user
SYSCALL_DEFINE2
SYSCALL_DEFINE1
do_sys_open
open_exec
__do_execve_filesys_execve() executes a new program.
getname_flags
filename_lookup
filename_parentat
kern_path_lockeddoes lookup, returns the object with parent locked
filename_mountpoint
do_file_open_root
filename_create
do_rmdir
do_unlinkatMake sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O.
do_symlinkat
do_renameat2
fs_lookup_params_lookup_param - Look up a path referred to by a parameter*@fc: The filesystem context to log errors through.*@param: The parameter.*@want_bdev: T if want a blockdev*@_path: The result of the lookup
quotactl_blocklook up a superblock on which quota ops will be performed* - use the name of a block device to find the superblock thereon
SYSCALL_DEFINE1sys_acct - enable/disable process accounting*@name: file name for accounting records or NULL to shutdown accounting* Returns 0 for success or negative errno values for failure.* sys_acct() is the only system call needed to implement process* accounting