#include <stddef.h>
Go to the source code of this file.
|
typedef void *(* | rpc_func) (void *) |
| Type of an RPC function.
|
|
◆ kernel_get_num_rpc_funcs()
size_t kernel_get_num_rpc_funcs |
( |
pid_t |
pid | ) |
|
Get the number of RPC functions a process has registers
- Parameters
-
pid | The PID of the process |
- Returns
- the number of RPC functions the process has registered
◆ kernel_rpc_call()
void* kernel_rpc_call |
( |
pid_t |
pid, |
|
|
char * |
name, |
|
|
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
Call an RPC function
- Parameters
-
pid | The PID of the process with the RPC function |
name | The name of the function to call |
buf | The argument buffer to provide |
size | The size of the argument buffer |
- Returns
- the return buffer of the RPC functiom
◆ kernel_rpc_deallocate_buf()
void kernel_rpc_deallocate_buf |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
Deallocate an RPC return buffer
- Parameters
-
buf | The buffer to deallocate |
size | The size of the buffer to deallocate |
◆ kernel_rpc_mark_as_init()
void kernel_rpc_mark_as_init |
( |
| ) |
|
Mark the current process as ready to accept RPC calls
◆ kernel_rpc_register_func()
void kernel_rpc_register_func |
( |
char * |
name, |
|
|
rpc_func |
code |
|
) |
| |
Register an RPC function
- Parameters
-
name | The name of the function |
code | The code of the function |
◆ kernel_rpc_return()
void kernel_rpc_return |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
Set the RPC return buffer for the calling thread & unblock the calling thread
- Parameters
-
buf | The return buffer |
size | The size of the return buffer |
- Note
- This function must only be called from an RPC thread