close
inode相關之函式 @ Kernel 2.6.27.19
linux/fs.h
void iput(struct inode *); // 實作在 fs/inode.c line 1150
原始註解
/**
* iput - put an inode
* @inode: inode to put
*
* Puts an inode, dropping its usage count. If the inode use count hits
* zero, the inode is then freed and may also be destroyed.
*
* Consequently, iput() can sleep.
*/
當前程序不使用這個inode,利用atomic_dec_and_lock將此inode的i_count減1。
全站熱搜