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       ilookup5 uses ifind to search for the inode specified by hashval and
28       data in the inode cache. This is a generalized version of ilookup for
29       file systems where the inode number is not sufficient for unique
30       identification of an inode.
31
32       If the inode is in the cache, the inode lock is waited upon and the
33       inode is returned with an incremented reference count.
34
35       Otherwise NULL is returned.
36
37       Note, test is called with the inode_lock held, so can't sleep.
38
40Kernel Hackers Manual 2.6.       November 2011                     ILOOKUP5(9)
Impressum