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

NAME

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

SYNOPSIS

9       struct inode * iget5_locked(struct super_block * sb,
10                                   unsigned long hashval,
11                                   int (*test) (struct inode *, void *),
12                                   int (*set) (struct inode *, void *),
13                                   void * data);
14

ARGUMENTS

16       sb
17           super block of file system
18
19       hashval
20           hash value (usually inode number) to get
21
22       test
23           callback used for comparisons between inodes
24
25       set
26           callback used to initialize a new struct inode
27
28       data
29           opaque data pointer to pass to test and set
30

DESCRIPTION

32       Search for the inode specified by hashval and data in the inode cache,
33       and if present it is return it with an increased reference count. This
34       is a generalized version of iget_locked for file systems where the
35       inode number is not sufficient for unique identification of an inode.
36
37       If the inode is not in cache, allocate a new inode and return it
38       locked, hashed, and with the I_NEW flag set. The file system gets to
39       fill it in before unlocking it via unlock_new_inode.
40
41       Note both test and set are called with the inode_hash_lock held, so
42       can't sleep.
43
45Kernel Hackers Manual 3.10         June 2019                   IGET5_LOCKED(9)
Impressum