NTFS_INDEX_IGET

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_index_iget - obtain a struct inode corresponding to an index  

SYNOPSIS

"SYNOPSIS"

struct inode * ntfs_index_iget (struct inode * base_vi, ntfschar * name, u32 name_len);  

ARGUMENTS

base_vi
vfs base inode containing the index related attributes
name
Unicode name of the index
name_len
length of name in Unicode characters
 

DESCRIPTION

Obtain the (fake) struct inode corresponding to the index specified by name and name_len, which is present in the base mft record specified by the vfs inode base_vi.

If the index inode is in the cache, it is just returned with an increased reference count. Otherwise, a new struct inode is allocated and initialized, and finally ntfs_read_locked_index_inode is called to read the index related attributes and fill in the inode structure.

Return the struct inode of the index inode on success. Check the return value with IS_ERR and if true, the function failed and the error code is obtained from PTR_ERR.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:33 GMT, October 09, 2005