Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:55
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void drop_nlink(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
301  WARN_ON(i_nlink == 0)
302  __i_nlink--
303  If Not i_nlink Then atomic_long_inc( & s_remove_count)
Caller
NameDescribe
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