L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
L4::Ipc::Msg::Svr_val_ops< MTYPE > Struct Template Reference

Defines server-side handling of 'MTYPE' as RPC argument. More...

#include <ipc_basics>

Inheritance diagram for L4::Ipc::Msg::Svr_val_ops< MTYPE >:
Collaboration diagram for L4::Ipc::Msg::Svr_val_ops< MTYPE >:

Static Public Member Functions

static int to_svr_data (char *msg, unsigned offset, unsigned limit, MTYPE &arg) noexcept
 Copy data from the message to a T server reference (arg must be MTYPE &).
static int reserve_data (char *, unsigned offs, unsigned limit, MTYPE &) noexcept
 Prepare a T output operand (arg must be MTYPE &).
static int from_svr_data (char *msg, unsigned offset, unsigned limit, MTYPE const &arg) noexcept
 Copy a T into the message (arg must be either MTYPE or MTYPE const &).
Static Public Member Functions inherited from L4::Ipc::Msg::Svr_noops< MTYPE >
static constexpr int from_svr_data (char *msg, unsigned offset, unsigned limit, MTYPE const &arg) noexcept
 Write IPC data of arg into UTCB.
static constexpr int from_svr_items (char *msg, unsigned offset, unsigned limit, MTYPE const &arg) noexcept
 Write IPC send items of arg into UTCB.
static constexpr int reserve_data (char *msg, unsigned offset, unsigned limit, MTYPE &arg) noexcept
 Reserve IPC data bytes in UTCB.
static constexpr int to_svr_data (char *msg, unsigned offset, unsigned limit, MTYPE &arg) noexcept
 Read IPC data for arg from UTCB.
static constexpr int to_svr_items (char *msg, unsigned offset, unsigned limit, MTYPE &arg) noexcept
 Read IPC return items for arg from UTCB.

Detailed Description

template<typename MTYPE>
struct L4::Ipc::Msg::Svr_val_ops< MTYPE >

Defines server-side handling of 'MTYPE' as RPC argument.

This provides the default implementation for trivially copyable data types. Other types override the marshalling operations by partially specializing Svr_val_ops.

The template is always instantiated with the Elem<ARG>::svr_type of the IPC method signature.

Template Parameters
MTYPEElem<T>::arg_type (where T is the type used in the RPC definition)

Definition at line 438 of file ipc_basics.


The documentation for this struct was generated from the following file: