26#define DEVFS_NAME "devfs"
72typedef struct devfs_file_desc
uint64_t devfs_files_new(list_t *out, dentry_t *parent, const devfs_file_desc_t *descs)
Create multiple files in a devfs directory.
void devfs_init(void)
Initializes the devfs.
void devfs_files_free(list_t *files)
Free all files in a list created by devfs_files_new().
dentry_t * devfs_file_new(dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, const file_ops_t *fileOps, void *data)
Create a new file inside a mounted devfs instance.
dentry_t * devfs_dir_new(dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, void *data)
Create a new directory inside a mounted devfs instance.
dentry_t * devfs_symlink_new(dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, void *data)
Create a new symbolic link inside a mounted devfs instance.
Directory entry structure.
Descriptor for batch file creation.
const file_ops_t * fileOps
File operations, can be NULL.
void * data
Private data to store in the vnode of the file.
const vnode_ops_t * vnodeOps
Vnode operations, can be NULL.
const char * name
Name of the file, NULL marks end of array.
File operations structure.
Superblock operations structure.
vnode operations structure.
static vnode_ops_t vnodeOps
static file_ops_t fileOps