miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
sysfs.h File Reference
#include <miniOS/fs/vfs.h>
Include dependency graph for sysfs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sysfs_node

Macros

#define SYSFS_NODE_DIR   1
#define SYSFS_NODE_FILE   2
#define SYSFS_CONTENT_MAX   32

Typedefs

typedef struct sysfs_node sysfs_node_t

Functions

void sysfs_init (void)
sysfs_node_tsysfs_create_dir (sysfs_node_t *parent, const char *name)
sysfs_node_tsysfs_create_file (sysfs_node_t *parent, const char *name, const char *buf, uint32_t len, int(*callback)(char *, uint32_t))

Variables

sysfs_node_tg_sysfs_root

Macro Definition Documentation

◆ SYSFS_CONTENT_MAX

#define SYSFS_CONTENT_MAX   32

◆ SYSFS_NODE_DIR

#define SYSFS_NODE_DIR   1

◆ SYSFS_NODE_FILE

#define SYSFS_NODE_FILE   2

Typedef Documentation

◆ sysfs_node_t

typedef struct sysfs_node sysfs_node_t

Function Documentation

◆ sysfs_create_dir()

sysfs_node_t * sysfs_create_dir ( sysfs_node_t * parent,
const char * name )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sysfs_create_file()

sysfs_node_t * sysfs_create_file ( sysfs_node_t * parent,
const char * name,
const char * buf,
uint32_t len,
int(* callback )(char *, uint32_t) )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sysfs_init()

void sysfs_init ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_sysfs_root

sysfs_node_t* g_sysfs_root
extern