函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:01
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lear_nlink - directly zero an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink. See* drop_nlink() for why we care about i_nlink hitting zero.

函数原型:void clear_nlink(struct inode *inode)

返回类型:void

参数:

类型参数名称
struct inode *inode
318  如果i_nlink
319  __i_nlink等于0
320  atomic_long_inc( & s_remove_count)
调用者
名称描述
set_nlinkset_nlink - directly set an inode's link count*@inode: inode*@nlink: new nlink (should be non-zero)* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink.
__shmem_file_setupmmon code