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

NAME

6       ilookup5_nowait - search for an inode in the inode cache
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

28       Search for the inode specified by hashval and data in the inode cache.
29       If the inode is in the cache, the inode is returned with an incremented
30       reference count.
31

NOTE

33       I_NEW is not waited upon so you have to be very careful what you do
34       with the returned inode. You probably should be using ilookup5 instead.
35

NOTE2

37       test is called with the inode_hash_lock held, so can't sleep.
38
40Kernel Hackers Manual 3.10         June 2019                ILOOKUP5_NOWAIT(9)
Impressum