'\" t .\" Title: ilookup5 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "ILOOKUP5" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ilookup5 \- search for an inode in the inode cache .SH "SYNOPSIS" .HP \w'struct\ inode\ *\ ilookup5('u .BI "struct inode * ilookup5(struct\ super_block\ *\ " "sb" ", unsigned\ long\ " "hashval" ", int\ (*" "test" ")\ (struct\ inode\ *,\ void\ *), void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIsb\fR .RS 4 super block of file system to search .RE .PP \fIhashval\fR .RS 4 hash value (usually inode number) to search for .RE .PP \fItest\fR .RS 4 callback used for comparisons between inodes .RE .PP \fIdata\fR .RS 4 opaque data pointer to pass to \fItest\fR .RE .SH "DESCRIPTION" .PP Search for the inode specified by \fIhashval\fR and \fIdata\fR in the inode cache, and if the inode is in the cache, return the inode with an incremented reference count\&. Waits on I_NEW before returning the inode\&. returned with an incremented reference count\&. .PP This is a generalized version of \fBilookup\fR for file systems where the inode number is not sufficient for unique identification of an inode\&. .SH "NOTE" .PP \fItest\fR is called with the inode_hash_lock held, so can\*(Aqt sleep\&. .SH "COPYRIGHT" .br