libnx
Data Structures | Functions
romfs_dev.h File Reference

RomFS driver. More...

#include "../../types.h"
#include "../../services/fs.h"

Go to the source code of this file.

Data Structures

struct  romfs_header
 RomFS header. More...
 
struct  romfs_dir
 RomFS directory. More...
 
struct  romfs_file
 RomFS file. More...
 

Functions

Result romfsMount (struct romfs_mount **mount)
 Mounts the Application's RomFS. More...
 
static Result romfsInit (void)
 
Result romfsMountFromFile (FsFile file, u64 offset, struct romfs_mount **mount)
 Mounts RomFS from an open file. More...
 
static Result romfsInitFromFile (FsFile file, u64 offset)
 
Result romfsMountFromStorage (FsStorage storage, u64 offset, struct romfs_mount **mount)
 Mounts RomFS from an open storage. More...
 
static Result romfsInitFromStorage (FsStorage storage, u64 offset)
 
Result romfsBind (struct romfs_mount *mount)
 Bind the RomFS mount.
 
Result romfsUnmount (struct romfs_mount *mount)
 Unmounts the RomFS device.
 
static Result romfsExit (void)
 

Detailed Description

RomFS driver.

Author
yellows8
mtheall
fincs

Function Documentation

Result romfsMount ( struct romfs_mount **  mount)

Mounts the Application's RomFS.

Parameters
mountOutput mount handle
Result romfsMountFromFile ( FsFile  file,
u64  offset,
struct romfs_mount **  mount 
)

Mounts RomFS from an open file.

Parameters
fileFsFile of the RomFS image.
offsetOffset of the RomFS within the file.
mountOutput mount handle
Result romfsMountFromStorage ( FsStorage  storage,
u64  offset,
struct romfs_mount **  mount 
)

Mounts RomFS from an open storage.

Parameters
storageFsStorage of the RomFS image.
offsetOffset of the RomFS within the storage.
mountOutput mount handle