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

NAME

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

SYNOPSIS

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

ARGUMENTS

14       sb
15           super block of file system to search
16
17       hashval
18           hash value (usually inode number) to search for
19
20       test
21           callback used for comparisons between inodes
22
23       data
24           opaque data pointer to pass to test
25

DESCRIPTION

27       Search for the inode specified by hashval and data in the inode cache,
28       and if the inode is in the cache, return the inode with an incremented
29       reference count. Waits on I_NEW before returning the inode. returned
30       with an incremented reference count.
31
32       This is a generalized version of ilookup for file systems where the
33       inode number is not sufficient for unique identification of an inode.
34

NOTE

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