26#define DEVFS_NAME "devfs"
72typedef struct devfs_file_desc
dentry_t * devfs_dir_new(dentry_t *parent, const char *name, const inode_ops_t *inodeOps, void *private)
Create a new directory inside a mounted devfs instance.
uint64_t devfs_files_new(list_t *out, dentry_t *parent, const devfs_file_desc_t *descs)
Create multiple files in a devfs directory.
dentry_t * devfs_symlink_new(dentry_t *parent, const char *name, const inode_ops_t *inodeOps, void *private)
Create a new symbolic link inside a mounted devfs instance.
dentry_t * devfs_file_new(dentry_t *parent, const char *name, const inode_ops_t *inodeOps, const file_ops_t *fileOps, void *private)
Create a new file inside a mounted devfs instance.
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().
Directory entry structure.
Descriptor for batch file creation.
const file_ops_t * fileOps
File operations, can be NULL.
const inode_ops_t * inodeOps
Inode operations, can be NULL.
const char * name
Name of the file, NULL marks end of array.
File operations structure.
Inode operations structure.
Superblock operations structure.
static inode_ops_t inodeOps
static file_ops_t fileOps