1IGET_LOCKED(9)                   The Linux VFS                  IGET_LOCKED(9)
2
3
4

NAME

6       iget_locked - obtain an inode from a mounted file system
7

SYNOPSIS

9       struct inode * iget_locked(struct super_block * sb, unsigned long ino);
10

ARGUMENTS

12       sb
13           super block of file system
14
15       ino
16           inode number to get
17

DESCRIPTION

19       iget_locked uses ifind_fast to search for the inode specified by ino in
20       the inode cache and if present it is returned with an increased
21       reference count. This is for file systems where the inode number is
22       sufficient for unique identification of an inode.
23
24       If the inode is not in cache, get_new_inode_fast is called to allocate
25       a new inode and this is returned locked, hashed, and with the I_NEW
26       flag set. The file system gets to fill it in before unlocking it via
27       unlock_new_inode.
28
30Kernel Hackers Manual 2.6.       November 2011                  IGET_LOCKED(9)
Impressum