next up previous contents index
Next: 33.0.8 oskit_memfs_init: initialize MEMFS Up: Part IV: Component Libraries Previous: 32.0.7 fs_netbsd_mount: Mount a

33 Memory File System: liboskit_memfs.a

     

The memfs library contains an implementation of a trivial memory-based filesystem. It exports the standard OSKit filesystem interface, and depends on the underlying osenv interfaces. (See Chapter 9).

The header file <oskit/fs/memfs.h> must be included to use the memfs, and its derivative cousin, the bmodfs. When first instantiated, a memfs filesystem is empty, and may be populated using the standard file access mechanisms. A special function, oskit_memfs_file_set_contents is provided for convenience to replace the contents of a MEMFS filesystem. Clients who wish to strictly use the OSKit filesystem interface to guarantee portability to other filesystems should not use this function.





Utah Flux Research Group