![]() |
MOS Source Code
|
#include "mos/filesystem/sysfs/sysfs.hpp"#include "mos/filesystem/dentry.hpp"#include "mos/filesystem/vfs.hpp"#include "mos/filesystem/vfs_types.hpp"#include "mos/filesystem/vfs_utils.hpp"#include "mos/misc/setup.hpp"#include "mos/mm/mm.hpp"#include "mos/mm/physical/pmm.hpp"#include "mos/syslog/printk.hpp"#include <algorithm>#include <mos/filesystem/fs_types.h>#include <mos/io/io_types.h>#include <mos/lib/structures/list.hpp>#include <mos/type_utils.hpp>#include <mos/types.hpp>#include <mos_stdio.hpp>#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Classes | |
| struct | sysfs_file_t |
Variables | |
| static list_head | sysfs_dirs |
| filesystem_t | fs_sysfs |
| static superblock_t * | sysfs_sb = NULL |
| static const file_ops_t | sysfs_dir_file_ops = { 0 } |
| static const file_ops_t | sysfs_file_ops |
| static const inode_ops_t | sysfs_dir_i_ops |
| static const file_perm_t | sysfs_dir_perm = PERM_READ | PERM_EXEC |
|
static |
< for convenience
Definition at line 359 of file sysfs.cpp.
Referenced by sysfs_register().
Definition at line 42 of file sysfs.cpp.
Referenced by MOS_INIT(), sysfs_create_inode(), sysfs_do_register(), and sysfs_register_file().
| void sysfs_register | ( | sysfs_dir_t * | entry | ) |
|
static |
Definition at line 57 of file sysfs.cpp.
Referenced by sysfs_printf(), and sysfs_put_data().
| ssize_t sysfs_printf | ( | sysfs_file_t * | file, |
| const char * | fmt, | ||
| ... ) |
Definition at line 73 of file sysfs.cpp.
Referenced by init_sysfs_argv(), ipc_dump_name_waitlist(), ipc_sysfs_dump_name_waitlist(), ipc_sysfs_servers(), mmstat_sysfs_pagetable_show(), mmstat_sysfs_phyframe_stat_show(), mmstat_sysfs_stat(), mmstat_sysfs_vmaps_show(), process_sysfs_vmap_stat(), slab_sysfs_slabinfo(), tasks_sysfs_process_list(), tasks_sysfs_thread_list(), vfs_sysfs_dentry_stats_stat_receiver(), vfs_sysfs_filesystems(), and vfs_sysfs_mountpoints().
| ssize_t sysfs_put_data | ( | sysfs_file_t * | file, |
| const void * | data, | ||
| size_t | count ) |
| void sysfs_file_set_data | ( | sysfs_file_t * | file, |
| void * | data ) |
Definition at line 105 of file sysfs.cpp.
Referenced by mmstat_sysfs_phyframe_stat_store(), and mmstat_sysfs_store_pid().
| void * sysfs_file_get_data | ( | sysfs_file_t * | file | ) |
Definition at line 110 of file sysfs.cpp.
Referenced by mmstat_sysfs_pagetable_show(), mmstat_sysfs_phyframe_stat_show(), and mmstat_sysfs_vmaps_show().
| sysfs_item_t * sysfs_file_get_item | ( | sysfs_file_t * | file | ) |
Definition at line 115 of file sysfs.cpp.
Referenced by acpi_sysfs_mmap().
|
static |
|
static |
|
static |
Definition at line 139 of file sysfs.cpp.
Referenced by sysfs_fops_mmap(), sysfs_fops_read(), and sysfs_fops_seek().
|
static |
|
static |
|
static |
| bool sysfs_fops_mmap | ( | FsBaseFile * | file, |
| vmap_t * | vmap, | ||
| off_t | offset ) |
| bool sysfs_fops_munmap | ( | FsBaseFile * | file, |
| vmap_t * | vmap, | ||
| bool * | unmapped ) |
|
static |
|
static |
|
static |
| inode_t * sysfs_create_inode | ( | file_type_t | type, |
| void * | data ) |
Definition at line 375 of file sysfs.cpp.
Referenced by ipc_sysfs_create_ino().
| void sysfs_register_file | ( | sysfs_dir_t * | sysfs_dir, |
| sysfs_item_t * | item ) |
Register an entry in a sysfs directory.
| sysfs_dir | the sysfs directory to register the item in |
| item | the sysfs item to register |
Definition at line 382 of file sysfs.cpp.
Referenced by register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), sysfs_do_register(), and sysfs_register_root_file().
| MOS_INIT | ( | VFS | , |
| register_sysfs | ) |
|
static |
Definition at line 35 of file sysfs.cpp.
Referenced by sysfs_register().
| filesystem_t fs_sysfs |
Definition at line 352 of file sysfs.cpp.
Referenced by MOS_INIT(), and sysfs_fsop_mount().
|
static |
Definition at line 37 of file sysfs.cpp.
Referenced by MOS_INIT(), sysfs_create_inode(), sysfs_do_register(), sysfs_fsop_mount(), sysfs_iops_create(), sysfs_iops_iterate_dir(), sysfs_iops_lookup(), sysfs_register(), and sysfs_register_file().
|
static |
Definition at line 38 of file sysfs.cpp.
Referenced by MOS_INIT(), and sysfs_do_register().
|
static |
Definition at line 234 of file sysfs.cpp.
Referenced by sysfs_register_file().
|
static |
Definition at line 328 of file sysfs.cpp.
Referenced by MOS_INIT(), and sysfs_do_register().
|
static |
Definition at line 357 of file sysfs.cpp.
Referenced by sysfs_do_register().