IFIND

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ifind - internal function, you want ilookup5 or iget5.  

SYNOPSIS

"SYNOPSIS"

struct inode * ifind (struct super_block * sb, struct hlist_head * head, int (*test) struct inode *, void *, void * data, const int wait);  

ARGUMENTS

sb
super block of file system to search
head
the head of the list to search
test
callback used for comparisons between inodes
data
opaque data pointer to pass to test
wait
if true wait for the inode to be unlocked, if false do not
 

DESCRIPTION

ifind searches for the inode specified by data in the inode cache. This is a generalized version of ifind_fast for file systems where the inode number is not sufficient for unique identification of an inode.

If the inode is in the cache, the inode is returned with an incremented reference count.

Otherwise NULL is returned.

Note, test is called with the inode_lock held, so can't sleep.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:16 GMT, October 09, 2005