NTFS_IGET

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

 

NAME

ntfs_iget - obtain a struct inode corresponding to a specific normal inode  

SYNOPSIS

"SYNOPSIS"

struct inode * ntfs_iget (struct super_block * sb, unsigned long mft_no);  

ARGUMENTS

sb
super block of mounted volume
mft_no
mft record number / inode number to obtain
 

DESCRIPTION

Obtain the struct inode corresponding to a specific normal inode (i.e. a file or directory).

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

Return the struct 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: 04:40:58 GMT, October 06, 2005