MOS Source Code
Loading...
Searching...
No Matches
userfs_manager.cpp File Reference
#include "mos/filesystem/userfs/userfs.hpp"
#include "mos/filesystem/vfs.hpp"
#include "mos/misc/setup.hpp"
#include "mos/syslog/printk.hpp"
#include "mos/tasks/kthread.hpp"
#include "proto/userfs-manager.services.h"
#include <librpc/rpc.h>
#include <librpc/rpc_server.h>
#include <mos/proto/fs_server.h>
#include <mos_stdio.hpp>
#include <pb_decode.h>
#include <pb_encode.h>
+ Include dependency graph for userfs_manager.cpp:

Go to the source code of this file.

Macros

#define USERFS_IMPL_X(ARGS, PB, xarg)
 

Functions

static rpc_result_code_t userfs_manager_register_filesystem (rpc_context_t *, mosrpc_userfs_register_request *req, mosrpc_userfs_register_response *resp)
 
static void userfs_manager_server_exec (void *arg)
 
static void userfs_manager_rpc_init ()
 
 MOS_INIT (KTHREAD, userfs_manager_rpc_init)
 

Macro Definition Documentation

◆ USERFS_IMPL_X

#define USERFS_IMPL_X ( ARGS,
PB,
xarg )
Value:
PB(xarg, 0, mount, MOUNT, mos_rpc_fs_mount_request, mos_rpc_fs_mount_response) \
PB(xarg, 1, readdir, READDIR, mos_rpc_fs_readdir_request, mos_rpc_fs_readdir_response) \
PB(xarg, 2, lookup, LOOKUP, mos_rpc_fs_lookup_request, mos_rpc_fs_lookup_response) \
PB(xarg, 3, readlink, READLINK, mos_rpc_fs_readlink_request, mos_rpc_fs_readlink_response) \
PB(xarg, 4, getpage, GETPAGE, mos_rpc_fs_getpage_request, mos_rpc_fs_getpage_response) \
PB(xarg, 5, putpage, PUTPAGE, mos_rpc_fs_putpage_request, mos_rpc_fs_putpage_response) \
PB(xarg, 6, create_file, CREATE_FILE, mos_rpc_fs_create_file_request, mos_rpc_fs_create_file_response) \
PB(xarg, 7, sync_inode, SYNC_INODE, mos_rpc_fs_sync_inode_request, mos_rpc_fs_sync_inode_response) \
PB(xarg, 8, unlink, UNLINK, mos_rpc_fs_unlink_request, mos_rpc_fs_unlink_response)\

Definition at line 11 of file fs_server.h.

Function Documentation

◆ userfs_manager_register_filesystem()

static rpc_result_code_t userfs_manager_register_filesystem ( rpc_context_t * ,
mosrpc_userfs_register_request * req,
mosrpc_userfs_register_response * resp )
static

Definition at line 19 of file userfs_manager.cpp.

Referenced by userfs_manager_register_filesystem().

+ Here is the call graph for this function:

◆ userfs_manager_server_exec()

static void userfs_manager_server_exec ( void * arg)
static

Definition at line 37 of file userfs_manager.cpp.

Referenced by userfs_manager_rpc_init().

+ Here is the call graph for this function:

◆ userfs_manager_rpc_init()

static void userfs_manager_rpc_init ( )
static

Definition at line 46 of file userfs_manager.cpp.

Referenced by MOS_INIT().

+ Here is the call graph for this function:

◆ MOS_INIT()

MOS_INIT ( KTHREAD ,
userfs_manager_rpc_init  )
+ Here is the call graph for this function: