NTFS_ATTR_IGET

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

 

NAME

ntfs_attr_iget - obtain a struct inode corresponding to an attribute  

SYNOPSIS

"SYNOPSIS"

struct inode * ntfs_attr_iget (struct inode * base_vi, ATTR_TYPE type, ntfschar * name, u32 name_len);  

ARGUMENTS

base_vi
vfs base inode containing the attribute
type
attribute type
name
Unicode name of the attribute (NULL if unnamed)
name_len
length of name in Unicode characters (0 if unnamed)
 

DESCRIPTION

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

If the attribute 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_attr_inode is called to read the attribute and fill in the inode structure.

Note, for index allocation attributes, you need to use ntfs_index_iget instead of ntfs_attr_iget as working with indices is a lot more complex.

Return the struct inode of the attribute 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