.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "IFIND" "9" "09 October 2005" "" "" .SH NAME ifind \- internal function, you want ilookup5 or iget5. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct inode * ifind (struct super_block * \fIsb\fB, struct hlist_head * \fIhead\fB, int (*\fItest\fB) struct inode *, void *, void * \fIdata\fB, const int \fIwait\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsb\fB\fR super block of file system to search .TP \fB\fIhead\fB\fR the head of the list to search .TP \fB\fItest\fB\fR callback used for comparisons between inodes .TP \fB\fIdata\fB\fR opaque data pointer to pass to \fItest\fR .TP \fB\fIwait\fB\fR if true wait for the inode to be unlocked, if false do not .SH "DESCRIPTION" .PP \fBifind\fR searches for the inode specified by \fIdata\fR in the inode cache. This is a generalized version of \fBifind_fast\fR for file systems where the inode number is not sufficient for unique identification of an inode. .PP If the inode is in the cache, the inode is returned with an incremented reference count. .PP Otherwise NULL is returned. .PP Note, \fItest\fR is called with the inode_lock held, so can't sleep.