MOS Source Code
|
#include "mos/filesystem/sysfs/sysfs.h"
#include "mos/filesystem/dentry.h"
#include "mos/filesystem/vfs.h"
#include "mos/filesystem/vfs_types.h"
#include "mos/filesystem/vfs_utils.h"
#include "mos/misc/setup.h"
#include "mos/mm/mm.h"
#include "mos/mm/physical/pmm.h"
#include "mos/syslog/printk.h"
#include <mos/filesystem/fs_types.h>
#include <mos/io/io_types.h>
#include <mos/lib/structures/list.h>
#include <mos/types.h>
#include <mos_stdio.h>
#include <mos_stdlib.h>
#include <mos_string.h>
Go to the source code of this file.
Classes | |
struct | sysfs_file_t |
Macros | |
#define | pr_fmt(fmt) |
Variables | |
static list_head | sysfs_dirs = LIST_HEAD_INIT(sysfs_dirs) |
static 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 360 of file sysfs.c.
Referenced by sysfs_register().
Definition at line 42 of file sysfs.c.
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.c.
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.c.
Referenced by _process_do_print(), _thread_do_print(), 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(), 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.c.
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.c.
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.c.
Referenced by acpi_sysfs_mmap().
|
static |
Definition at line 139 of file sysfs.c.
Referenced by sysfs_fops_mmap(), sysfs_fops_read(), and sysfs_fops_seek().
|
static |
|
static |
|
static |
|
static |
inode_t * sysfs_create_inode | ( | file_type_t | type, |
void * | data ) |
Definition at line 376 of file sysfs.c.
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 383 of file sysfs.c.
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.c.
Referenced by sysfs_register().
|
static |
Definition at line 36 of file sysfs.c.
Referenced by MOS_INIT(), and sysfs_fsop_mount().
|
static |
Definition at line 37 of file sysfs.c.
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.c.
Referenced by MOS_INIT(), and sysfs_do_register().
|
static |
Definition at line 234 of file sysfs.c.
Referenced by sysfs_register_file().
|
static |
Definition at line 328 of file sysfs.c.
Referenced by MOS_INIT(), and sysfs_do_register().
|
static |
Definition at line 358 of file sysfs.c.
Referenced by sysfs_do_register().