函数逻辑报告

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

函数名称:_nlink - directly increment an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink. Currently,* it is only here for parity with dec_nlink().

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

返回类型:void

参数:

类型参数名称
struct inode *inode
357  如果此条件成立可能性小(为编译器优化)(i_nlink == 0)则
358  WARN_ON(!(Misc & I_LINKABLE))
359  atomic_long_dec( & s_remove_count)
362  __i_nlink自加
调用者
名称描述
bpf_mkdir
securityfs_create_dentrysecurityfs_create_dentry - create a dentry in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file
sel_make_dirdeclaration for sel_make_class_dirs
__aafs_setup_d_inode__aafs_setup_d_inode - basic inode setup for apparmorfs*@dir: parent directory for the dentry*@dentry: dentry we are seting the inode up for*@mode: permissions the file should have*@data: data to store on inode
simple_link
simple_rename
ramfs_get_inode
ramfs_mkdir
inode_inc_link_count