L4Re - L4 Runtime Environment
L4::Ipc::Small_buf Class Reference

A receive item for receiving a single capability. More...

+ Collaboration diagram for L4::Ipc::Small_buf:

Public Member Functions

 Small_buf (L4::Cap< void > cap, unsigned long flags=0)
 Create a receive item from a C++ cap. More...
 
 Small_buf (l4_cap_idx_t cap, unsigned long flags=0)
 Create a receive item from a C cap. More...
 

Detailed Description

A receive item for receiving a single capability.

This class is the main abstraction for receiving capabilities via Ipc::Istream. To receive a capability an instance of Small_buf that refers to an empty capability slot must be inserted into the Ipc::Istream before the receive operation.

Definition at line 268 of file ipc_types.

Constructor & Destructor Documentation

◆ Small_buf() [1/2]

L4::Ipc::Small_buf::Small_buf ( L4::Cap< void >  cap,
unsigned long  flags = 0 
)
inlineexplicit

Create a receive item from a C++ cap.

Parameters
capCapability slot where to save the capability.
flagsReceive buffer flags, see l4_msg_item_consts_t. L4_RCV_ITEM_SINGLE_CAP will always be set.

Definition at line 278 of file ipc_types.

◆ Small_buf() [2/2]

L4::Ipc::Small_buf::Small_buf ( l4_cap_idx_t  cap,
unsigned long  flags = 0 
)
inlineexplicit

Create a receive item from a C cap.

Parameters
capCapability slot where to save the capability.
flagsReceive buffer flags, see l4_msg_item_consts_t. L4_RCV_ITEM_SINGLE_CAP will always be set.

Definition at line 285 of file ipc_types.


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