函数逻辑报告

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

函数名称:drop_nlink - directly drop an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink

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

返回类型:void

参数:

类型参数名称
struct inode *inode
301  WARN_ON(i_nlink == 0)
302  __i_nlink自减
303  如果非i_nlinkatomic_long_inc( & s_remove_count)
调用者
名称描述
simple_unlink
simple_rmdir
simple_rename
kill_node
devpts_pty_killdevpts_pty_kill -- remove inode form /dev/pts/*@inode: inode of the slave to be removed* This is an inverse operation of devpts_pty_new.
inode_dec_link_count