int fs_register(const struct fs_ops *fops)
Registers a file system with the abstraction layer. On success, all calls into fs/fs
will use the registered file system.
Argument | Description |
---|---|
fops | A pointer to const struct fs_ops. Specifies which file system routines get mapped to the fs/fs API. All function pointers must be filled in. |
Only one file system can be registered. The registered file system is mounted in the root directory (/).
#include "fs/fs.h"