'\" t .\" Title: iget_locked .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IGET_LOCKED" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" iget_locked \- obtain an inode from a mounted file system .SH "SYNOPSIS" .HP \w'struct\ inode\ *\ iget_locked('u .BI "struct inode * iget_locked(struct\ super_block\ *\ " "sb" ", unsigned\ long\ " "ino" ");" .SH "ARGUMENTS" .PP \fIsb\fR .RS 4 super block of file system .RE .PP \fIino\fR .RS 4 inode number to get .RE .SH "DESCRIPTION" .PP Search for the inode specified by \fIino\fR in the inode cache and if present return it with an increased reference count\&. This is for file systems where the inode number is sufficient for unique identification of an inode\&. .PP If the inode is not in cache, allocate a new inode and return it locked, hashed, and with the I_NEW flag set\&. The file system gets to fill it in before unlocking it via \fBunlock_new_inode\fR\&. .SH "COPYRIGHT" .br