MOS Source Code
|
#include <sysfs.h>
Public Attributes | ||
const char * | name | |
sysfs_item_type_t | type | |
bool(* | show )(sysfs_file_t *file) | |
size_t(* | store )(sysfs_file_t *file, const char *buf, size_t count, off_t offset) | |
ino_t | ino | |
union { | ||
struct { | ||
bool(* mmap )(sysfs_file_t *file, vmap_t *vmap, off_t offset) | ||
bool(* munmap )(sysfs_file_t *file, vmap_t *vmap, bool *unmapped) | ||
size_t size | ||
} mem | ||
struct { | ||
as_linked_list | ||
void(* iterate )(struct _sysfs_item *item, dentry_t *dentry, vfs_listdir_state_t *iterator_state, dentry_iterator_op op) | ||
bool(* lookup )(inode_t *parent_dir, dentry_t *dentry) | ||
bool(* create )(inode_t *parent_dir, dentry_t *dentry, file_type_t type, file_perm_t perm) | ||
} dyn | ||
}; | ||
const char* name |
Definition at line 22 of file sysfs.h.
Referenced by register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), sysfs_iops_iterate_dir(), and sysfs_register_file().
sysfs_item_type_t type |
Definition at line 23 of file sysfs.h.
Referenced by register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), sysfs_fops_mmap(), sysfs_fops_munmap(), sysfs_fops_read(), sysfs_fops_seek(), sysfs_fops_write(), sysfs_iops_iterate_dir(), and sysfs_register_file().
bool(* show) (sysfs_file_t *file) |
Definition at line 24 of file sysfs.h.
Referenced by sysfs_file_ensure_ready().
size_t(* store) (sysfs_file_t *file, const char *buf, size_t count, off_t offset) |
Definition at line 25 of file sysfs.h.
Referenced by sysfs_fops_write().
ino_t ino |
Definition at line 26 of file sysfs.h.
Referenced by sysfs_iops_iterate_dir(), and sysfs_register_file().
bool(* mmap) (sysfs_file_t *file, vmap_t *vmap, off_t offset) |
Definition at line 32 of file sysfs.h.
Referenced by register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), and sysfs_fops_mmap().
bool(* munmap) (sysfs_file_t *file, vmap_t *vmap, bool *unmapped) |
Definition at line 33 of file sysfs.h.
Referenced by register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), and sysfs_fops_munmap().
size_t size |
Definition at line 34 of file sysfs.h.
Referenced by mm_sysfs_init(), register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), and sysfs_register_file().
struct { ... } mem |
void(* iterate) (struct _sysfs_item *item, dentry_t *dentry, vfs_listdir_state_t *iterator_state, dentry_iterator_op op) |
Definition at line 40 of file sysfs.h.
Referenced by sysfs_iops_iterate_dir(), and sysfs_register_file().
Definition at line 41 of file sysfs.h.
Referenced by sysfs_iops_lookup().
bool(* create) (inode_t *parent_dir, dentry_t *dentry, file_type_t type, file_perm_t perm) |
Definition at line 42 of file sysfs.h.
Referenced by sysfs_iops_create().
struct { ... } dyn |
Referenced by sysfs_iops_create(), sysfs_iops_iterate_dir(), sysfs_iops_lookup(), and sysfs_register_file().
union { ... } |