1ILOOKUP5_NOWAIT(9) The Linux VFS ILOOKUP5_NOWAIT(9)
2
3
4
6 ilookup5_nowait - search for an inode in the inode cache
7
9 struct inode * ilookup5_nowait(struct super_block * sb,
10 unsigned long hashval,
11 int (*test) (struct inode *, void *),
12 void * data);
13
15 sb
16 super block of file system to search
17
18 hashval
19 hash value (usually inode number) to search for
20
21 test
22 callback used for comparisons between inodes
23
24 data
25 opaque data pointer to pass to test
26
28 ilookup5 uses ifind to search for the inode specified by hashval and
29 data in the inode cache. This is a generalized version of ilookup for
30 file systems where the inode number is not sufficient for unique
31 identification of an inode.
32
33 If the inode is in the cache, the inode is returned with an incremented
34 reference count. Note, the inode lock is not waited upon so you have to
35 be very careful what you do with the returned inode. You probably
36 should be using ilookup5 instead.
37
38 Otherwise NULL is returned.
39
40 Note, test is called with the inode_lock held, so canĀ“t sleep.
41
43Kernel Hackers Manual 2.6. June 2019 ILOOKUP5_NOWAIT(9)