next up previous contents index
Next: 7.4 oskit_file: File Interface Up: 7.3 oskit_filesystem: File System Previous: 7.3.5 unmount: Forcibly unmount

7.3.6 lookupi: Lookup a file by inode number

 

SYNOPSIS

#include <oskit/fs/filesystem.h>

oskit_error_t oskit_filesystem_lookupi(oskit_filesystem_t *f, oskit_ino_t ino, [out] oskit_file_t **out_file);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

This method looks up a file given its inode number. If the inode number is invalid, the behavior is undefined.

PARAMETERS

f
The filesystem to find the inode in.

ino
The inode number of the file to find.

out_file
Upon success, will point to a oskit_file_t for the file.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group