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

Go to the source code of this file.

Classes

struct  memfd_t
 

Functions

static void memfd_file_release (file_t *file)
 
PtrResult< io_tmemfd_create (const char *name)
 
static void memfd_init ()
 
 MOS_INIT (VFS, memfd_init)
 

Variables

filesystem_t fs_tmpfs
 
static dentry_tmemfd_root_dentry = NULL
 
static const file_ops_t memfd_file_ops
 

Function Documentation

◆ memfd_file_release()

static void memfd_file_release ( file_t * file)
static

Definition at line 29 of file memfd.cpp.

+ Here is the call graph for this function:

◆ memfd_create()

PtrResult< io_t > memfd_create ( const char * name)

Definition at line 40 of file memfd.cpp.

Referenced by memfd_create().

+ Here is the call graph for this function:

◆ memfd_init()

static void memfd_init ( )
static

Definition at line 75 of file memfd.cpp.

Referenced by MOS_INIT().

+ Here is the call graph for this function:

◆ MOS_INIT()

MOS_INIT ( VFS ,
memfd_init  )
+ Here is the call graph for this function:

Variable Documentation

◆ fs_tmpfs

◆ memfd_root_dentry

dentry_t* memfd_root_dentry = NULL
static

Definition at line 27 of file memfd.cpp.

Referenced by memfd_create(), and memfd_init().

◆ memfd_file_ops

const file_ops_t memfd_file_ops
static
Initial value:
= {
.release = memfd_file_release,
}
static void memfd_file_release(file_t *file)
Definition memfd.cpp:29
ssize_t vfs_generic_write(const file_t *file, const void *buf, size_t size, off_t offset)
ssize_t vfs_generic_read(const file_t *file, void *buf, size_t size, off_t offset)
Definition vfs_utils.cpp:93

Definition at line 34 of file memfd.cpp.

Referenced by memfd_create().