#include <oskit/fs/fsnamespace.h>oskit_error_t oskit_create_fsnamespace(struct oskit_dir *rootdir, struct oskit_dir *cwd, oskit_fsnamespace_t **out_fsnamespace);
Create a new fileystem namespace object, with the given root and current working directories. Typically, this routine will be called when the client OS is initialized. Once the root filesystem has been opened, the client OS will call this routine to create a namespace object, specifying the root directory of the root filesystem as the root directory and current working directory of the new namespace. Subsequent pathname translation is then ``rooted'' at these locations.
- rootdir
- The OSKit oskit_dir of the initial root directory.
- cwd
- The OSKit oskit_dir of the initial current working directory.
- out_fsnamespace
- The oskit_fsnamespace COM interface for the new object.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.
The oskit_fsnamespace COM interface inherits from IUnknown, and has the following additional methods: