.\" 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_READ_LOCKED_ATTR_INODE" "9" "09 October 2005" "" ""
.SH NAME
ntfs_read_locked_attr_inode \- read an attribute inode from its base inode
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_read_locked_attr_inode (struct inode * \fIbase_vi\fB, struct inode * \fIvi\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbase_vi\fB\fR
base inode
.TP
\fB\fIvi\fB\fR
attribute inode to read
.SH "DESCRIPTION"
.PP
\fBntfs_read_locked_attr_inode\fR is called from \fBntfs_attr_iget\fR to read the
attribute inode described by \fIvi\fR into memory from the base mft record
described by \fIbase_ni\fR\&.
.PP
\fBntfs_read_locked_attr_inode\fR maps, pins and locks the base inode for
reading and looks up the attribute described by \fIvi\fR before setting up the
necessary fields in \fIvi\fR as well as initializing the ntfs inode.
.SH "Q"
.PP
What locks are held when the function is called?
.SH "A"
.PP
i_state has I_LOCK set, hence the inode is locked, also
i_count is set to 1, so it is not going to go away
.PP
Return 0 on success and -errno on error. In the error case, the inode will
have had \fBmake_bad_inode\fR executed on it.