.\" 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_TEST_INODE" "" "06 October 2005" "" ""
.SH NAME
ntfs_test_inode \- compare two (possibly fake) inodes for equality
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_test_inode (struct inode * \fIvi\fB, ntfs_attr * \fIna\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvi\fB\fR
vfs inode which to test
.TP
\fB\fIna\fB\fR
ntfs attribute which is being tested with
.SH "DESCRIPTION"
.PP
Compare the ntfs attribute embedded in the ntfs specific part of the vfs
inode \fIvi\fR for equality with the ntfs attribute \fIna\fR\&.
.PP
If searching for the normal file/directory inode, set \fIna\fR->type to AT_UNUSED.
\fIna\fR->name and \fIna\fR->name_len are then ignored.
.PP
Return 1 if the attributes match and 0 if not.
.SH "NOTE"
.PP
This function runs with the inode_lock spin lock held so it is not
allowed to sleep.