Karg  v0.2.0
The kernel of CargOS
sbi.c File Reference
#include <errno.h>
#include <types.h>

Classes

struct  sbi_res_t
 

Macros

#define SBI_SUCCESS   0
 
#define SBI_ERR_FAILED   -1
 
#define SBI_ERR_NOT_SUPPORTED   -2
 
#define SBI_ERR_INVALID_PARAM   -3
 
#define SBI_ERR_DENIED   -4
 
#define SBI_ERR_INVALID_ADDRESS   -5
 
#define SBI_ERR_ALREADY_AVAILABLE   -6
 
#define SBI_ERR_ALREADY_STARTED   -7
 
#define SBI_ERR_ALREADY_STOPPED   -8
 

Functions

sbi_res_t sbi_ecall (i32 eid, i32 fid, usize arg0, usize arg1, usize arg2, usize arg3, usize arg4, usize arg5)
 
i32 sbi_map_err (isize err)
 

Macro Definition Documentation

◆ SBI_ERR_ALREADY_AVAILABLE

#define SBI_ERR_ALREADY_AVAILABLE   -6

◆ SBI_ERR_ALREADY_STARTED

#define SBI_ERR_ALREADY_STARTED   -7

◆ SBI_ERR_ALREADY_STOPPED

#define SBI_ERR_ALREADY_STOPPED   -8

◆ SBI_ERR_DENIED

#define SBI_ERR_DENIED   -4

◆ SBI_ERR_FAILED

#define SBI_ERR_FAILED   -1

◆ SBI_ERR_INVALID_ADDRESS

#define SBI_ERR_INVALID_ADDRESS   -5

◆ SBI_ERR_INVALID_PARAM

#define SBI_ERR_INVALID_PARAM   -3

◆ SBI_ERR_NOT_SUPPORTED

#define SBI_ERR_NOT_SUPPORTED   -2

◆ SBI_SUCCESS

#define SBI_SUCCESS   0

Function Documentation

◆ sbi_ecall()

sbi_res_t sbi_ecall ( i32  eid,
i32  fid,
usize  arg0,
usize  arg1,
usize  arg2,
usize  arg3,
usize  arg4,
usize  arg5 
)

◆ sbi_map_err()

i32 sbi_map_err ( isize  err)