L4Re - L4 Runtime Environment
L4Re::Util::Event_buffer_t< PAYLOAD > Class Template Reference

Event_buffer utility class. More...

+ Inheritance diagram for L4Re::Util::Event_buffer_t< PAYLOAD >:
+ Collaboration diagram for L4Re::Util::Event_buffer_t< PAYLOAD >:

Public Member Functions

void * buf () const throw ()
 Return the buffer. More...
 
long attach (L4::Cap< L4Re::Dataspace > ds, L4::Cap< L4Re::Rm > rm) throw ()
 Attach event buffer from address space. More...
 
long detach (L4::Cap< L4Re::Rm > rm) throw ()
 Detach event buffer from address space. More...
 
- Public Member Functions inherited from L4Re::Event_buffer_t< PAYLOAD >
 Event_buffer_t (void *buffer, l4_addr_t size)
 Initialize event buffer. More...
 
Eventnext () throw ()
 Next event in buffer. More...
 
bool put (Event const &ev) throw ()
 Put event into buffer at current position. More...
 

Detailed Description

template<typename PAYLOAD>
class L4Re::Util::Event_buffer_t< PAYLOAD >

Event_buffer utility class.

Definition at line 36 of file event_buffer.

Member Function Documentation

◆ attach()

template<typename PAYLOAD >
long L4Re::Util::Event_buffer_t< PAYLOAD >::attach ( L4::Cap< L4Re::Dataspace ds,
L4::Cap< L4Re::Rm rm 
)
throw (
)
inline

Attach event buffer from address space.

Parameters
dsDataspace of the event buffer.
rmRegion manager to attach buffer to.
Returns
0 on success, negative error code otherwise.

Definition at line 56 of file event_buffer.

◆ buf()

template<typename PAYLOAD >
void* L4Re::Util::Event_buffer_t< PAYLOAD >::buf ( ) const
throw (
)
inline

Return the buffer.

Returns
Pointer to the event buffer.

Definition at line 46 of file event_buffer.

◆ detach()

template<typename PAYLOAD >
long L4Re::Util::Event_buffer_t< PAYLOAD >::detach ( L4::Cap< L4Re::Rm rm)
throw (
)
inline

Detach event buffer from address space.

Parameters
rmRegion manager to detach buffer from.
Returns
0 on success, negative error code otherwise.

Definition at line 77 of file event_buffer.


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