MOS Source Code
Loading...
Searching...
No Matches
ipc_sysfs.c File Reference
+ Include dependency graph for ipc_sysfs.c:

Go to the source code of this file.

Classes

struct  ipc_vfs_private_t
 

Functions

 SLAB_AUTOINIT ("ipc_vfs_private", ipc_vfs_private_slab, ipc_vfs_private_t)
 
static bool vfs_open_ipc (inode_t *ino, file_t *file, bool created)
 
static ssize_t vfs_ipc_file_read (const file_t *file, void *buf, size_t size, off_t offset)
 
static ssize_t vfs_ipc_file_write (const file_t *file, const void *buf, size_t size, off_t offset)
 
static void vfs_ipc_file_release (file_t *file)
 

Variables

slab_tipc_vfs_private_slab = NULL
 
const file_ops_t ipc_sysfs_file_ops
 

Function Documentation

◆ SLAB_AUTOINIT()

SLAB_AUTOINIT ( "ipc_vfs_private" ,
ipc_vfs_private_slab ,
ipc_vfs_private_t  )

◆ vfs_open_ipc()

static bool vfs_open_ipc ( inode_t * ino,
file_t * file,
bool created )
static

Definition at line 26 of file ipc_sysfs.c.

+ Here is the call graph for this function:

◆ vfs_ipc_file_read()

static ssize_t vfs_ipc_file_read ( const file_t * file,
void * buf,
size_t size,
off_t offset )
static

Definition at line 54 of file ipc_sysfs.c.

+ Here is the call graph for this function:

◆ vfs_ipc_file_write()

static ssize_t vfs_ipc_file_write ( const file_t * file,
const void * buf,
size_t size,
off_t offset )
static

Definition at line 87 of file ipc_sysfs.c.

+ Here is the call graph for this function:

◆ vfs_ipc_file_release()

static void vfs_ipc_file_release ( file_t * file)
static

Definition at line 97 of file ipc_sysfs.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ipc_vfs_private_slab

slab_t* ipc_vfs_private_slab = NULL

Definition at line 23 of file ipc_sysfs.c.

Referenced by vfs_open_ipc().

◆ ipc_sysfs_file_ops

const file_ops_t ipc_sysfs_file_ops
Initial value:
= {
.open = vfs_open_ipc,
}
static ssize_t vfs_ipc_file_write(const file_t *file, const void *buf, size_t size, off_t offset)
Definition ipc_sysfs.c:87
static void vfs_ipc_file_release(file_t *file)
Definition ipc_sysfs.c:97
static ssize_t vfs_ipc_file_read(const file_t *file, void *buf, size_t size, off_t offset)
Definition ipc_sysfs.c:54
static bool vfs_open_ipc(inode_t *ino, file_t *file, bool created)
Definition ipc_sysfs.c:26

Definition at line 110 of file ipc_sysfs.c.

Referenced by ipc_sysfs_create_ino().