.\" 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 "NTFS_INIT_LOCKED_INODE" "9" "09 October 2005" "" "" .SH NAME ntfs_init_locked_inode \- initialize an inode .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ntfs_init_locked_inode (struct inode * \fIvi\fB, ntfs_attr * \fIna\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvi\fB\fR vfs inode to initialize .TP \fB\fIna\fB\fR ntfs attribute which to initialize \fIvi\fR to .SH "DESCRIPTION" .PP Initialize the vfs inode \fIvi\fR with the values from the ntfs attribute \fIna\fR in order to enable \fBntfs_test_inode\fR to do its work. .PP If initializing the normal file/directory inode, set \fIna\fR->type to AT_UNUSED. In that case, \fIna\fR->name and \fIna\fR->name_len should be set to NULL and 0, respectively. Although that is not strictly necessary as \fBntfs_read_inode_locked\fR will fill them in later. .PP Return 0 on success and -errno on error. .SH "NOTE" .PP This function runs with the inode_lock spin lock held so it is not allowed to sleep. (Hence the GFP_ATOMIC allocation.)