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

Empty server side marshalling code. More...

#include <ipc_basics>

Inheritance diagram for L4::Ipc::Msg::Svr_noops< T >:
Collaboration diagram for L4::Ipc::Msg::Svr_noops< T >:

Static Public Member Functions

static constexpr int from_svr_data (char *msg, unsigned offset, unsigned limit, T const &arg) noexcept
 Write IPC data of arg into UTCB.
static constexpr int from_svr_items (char *msg, unsigned offset, unsigned limit, T const &arg) noexcept
 Write IPC send items of arg into UTCB.
static constexpr int reserve_data (char *msg, unsigned offset, unsigned limit, T &arg) noexcept
 Reserve IPC data bytes in UTCB.
static constexpr int to_svr_data (char *msg, unsigned offset, unsigned limit, T &arg) noexcept
 Read IPC data for arg from UTCB.
static constexpr int to_svr_items (char *msg, unsigned offset, unsigned limit, T &arg) noexcept
 Read IPC return items for arg from UTCB.

Detailed Description

template<typename T>
struct L4::Ipc::Msg::Svr_noops< T >

Empty server side marshalling code.

Used as basis for concrete marshalling code.

Definition at line 294 of file ipc_basics.

Member Function Documentation

◆ from_svr_data()

template<typename T>
constexpr int L4::Ipc::Msg::Svr_noops< T >::from_svr_data ( char * msg,
unsigned offset,
unsigned limit,
T const & arg )
inlinestaticconstexprnoexcept

Write IPC data of arg into UTCB.

Called only for output arguments.

Parameters
msgPointer to first usable UTCB MR
offsetByte offset into UTCB MRs
limitMaximum number of bytes available in msg array
argThe IPC argument
Return values
<0Error code
>=0Offset into msg for next IPC argument

Definition at line 309 of file ipc_basics.

◆ from_svr_items()

template<typename T>
constexpr int L4::Ipc::Msg::Svr_noops< T >::from_svr_items ( char * msg,
unsigned offset,
unsigned limit,
T const & arg )
inlinestaticconstexprnoexcept

Write IPC send items of arg into UTCB.

Called only for output arguments.

Parameters
msgPointer to first usable UTCB MR
offsetByte offset into UTCB MRs
limitMaximum number of bytes available in msg array
argThe IPC argument
Return values
<0Error code
>=0Offset into msg for next IPC argument

Definition at line 328 of file ipc_basics.

◆ reserve_data()

template<typename T>
constexpr int L4::Ipc::Msg::Svr_noops< T >::reserve_data ( char * msg,
unsigned offset,
unsigned limit,
T & arg )
inlinestaticconstexprnoexcept

Reserve IPC data bytes in UTCB.

Called only for output arguments. The argument type may remember the msg pointer if the data is put directly into the UTCB.

Parameters
msgPointer to first usable UTCB MR
offsetByte offset into UTCB MRs
limitMaximum number of bytes available in msg array
argThe IPC argument
Return values
<0Error code
>=0Offset into msg for next IPC argument

Definition at line 348 of file ipc_basics.

◆ to_svr_data()

template<typename T>
constexpr int L4::Ipc::Msg::Svr_noops< T >::to_svr_data ( char * msg,
unsigned offset,
unsigned limit,
T & arg )
inlinestaticconstexprnoexcept

Read IPC data for arg from UTCB.

Called only for input arguments.

Parameters
msgPointer to first filled UTCB MR
offsetByte offset into UTCB MRs
limitNumber of bytes available in msg array
[out]argThe IPC argument
Return values
<0Error code
>=0Offset into msg for next IPC argument

Definition at line 367 of file ipc_basics.

◆ to_svr_items()

template<typename T>
constexpr int L4::Ipc::Msg::Svr_noops< T >::to_svr_items ( char * msg,
unsigned offset,
unsigned limit,
T & arg )
inlinestaticconstexprnoexcept

Read IPC return items for arg from UTCB.

Called only for input arguments.

Parameters
msgPointer to first filled UTCB MR
offsetByte offset into UTCB MRs
limitNumber of bytes available in msg array
[out]argThe IPC argument
Return values
<0Error code
>=0Offset into msg for next IPC argument

Definition at line 386 of file ipc_basics.


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