23#define SYSFS_NAME "sysfs"
mode_t
Path flags and permissions.
mount_flags_t
Mount flags type.
static const path_flag_t flags[]
static inode_ops_t inodeOps
static file_ops_t fileOps
static superblock_ops_t superblockOps
Directory entry structure.
File operations structure.
Inode operations structure.
Superblock operations structure.
dentry_t * sysfs_get_dev(void)
Gets the default SysFS directory.
mount_t * sysfs_mount_new(const path_t *parent, const char *name, namespace_t *ns, mount_flags_t flags, mode_t mode, const superblock_ops_t *superblockOps)
Mount a new instance of SysFS.
dentry_t * sysfs_dir_new(dentry_t *parent, const char *name, const inode_ops_t *inodeOps, void *private)
Create a new directory inside a mounted SysFS instance.
dentry_t * sysfs_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 SysFS instance.
void sysfs_init(void)
Initializes the SysFS.