我在iput函数上面看到了以下注释:
- /**
- * 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.
- */
对我而言,这听起来不是“放”任何东西,而是“放弃”它.我知道drop_inode函数,在某些情况下会从iput调用,因此术语“put”的使用在这里更加令人困惑.