1IGET_LOCKED(9) The Linux VFS IGET_LOCKED(9)
2
3
4
6 iget_locked - obtain an inode from a mounted file system
7
9 struct inode * iget_locked(struct super_block * sb, unsigned long ino);
10
12 sb
13 super block of file system
14
15 ino
16 inode number to get
17
19 Search for the inode specified by ino in the inode cache and if present
20 return it with an increased reference count. This is for file systems
21 where the inode number is sufficient for unique identification of an
22 inode.
23
24 If the inode is not in cache, allocate a new inode and return it
25 locked, hashed, and with the I_NEW flag set. The file system gets to
26 fill it in before unlocking it via unlock_new_inode.
27
29Kernel Hackers Manual 3.10 June 2019 IGET_LOCKED(9)