next up previous contents index
Next: 13.6.4 fs_release: Release root Up: 13.6 Initialization Functions Previous: 13.6.2 set_system_clock: initialize clock

13.6.3 fs_init: Provide a root directory defining the file system namespace

 

SYNOPSIS

#include <oskit/c/fs.h>

oskit_error_t fs_init(oskit_dir_t *root);

DESCRIPTION

Provide a root directory defining the file system namespace. The current directory will initially also be this root directory. Note that the call is equivalent to fs_mount("/", root).

A typical call sequence in a standalone application that uses the BMOD (section 10.20) file system might be as follows:

        fs_init(oskit_bmod_init());

PARAMETERS

root
A valid oskit_dir instance. A reference to root is acquired.

RETURNS

Returns zero on success, or OSKIT_EINVAL if root is NULL.



University of Utah Flux Research Group