NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utcb::Frame Class Reference

A smaller frame on the UTCB. More...

#include <utcb.h>

Public Member Functions

unsigned received_item (unsigned skip=0)
 Returns the skip-th delegated capability range descriptor.
unsigned received_cap ()
 Returns the first capability in the first range delegated to us.
Crd translated_cap (unsigned skip=0)
unsigned identity (unsigned skip=0)
void dump_typed_items ()
unsigned untyped ()
unsigned typed ()
unsigned get_crd ()
template<typename T >
bool get_word (T &value)
 Copy an arbitrarily sized data item from the Frame and moves an internal pointer to the next item.
unsigned * get_ptr ()
unsigned short unconsumed ()
char * get_string (unsigned &len)
char * get_zero_string (unsigned &len)
Frameoperator<< (Crd value)
 Set receive window for the next call. This will not work with StaticPortalFunc! Use this only in custom protocols.
 Frame (Utcb *utcb, unsigned end)

Private Attributes

Utcb_utcb
unsigned _end
unsigned _consumed

Detailed Description

A smaller frame on the UTCB.

Can only be used to read incoming messages.

Constructor & Destructor Documentation

Utcb::Frame::Frame ( Utcb utcb,
unsigned  end 
)
inline

Member Function Documentation

void Utcb::Frame::dump_typed_items ( )
inline
unsigned Utcb::Frame::get_crd ( )
inline
unsigned* Utcb::Frame::get_ptr ( )
inline
char* Utcb::Frame::get_string ( unsigned &  len)
inline
template<typename T >
bool Utcb::Frame::get_word ( T &  value)
inline

Copy an arbitrarily sized data item from the Frame and moves an internal pointer to the next item.

Returns
true on error, false on success.
char* Utcb::Frame::get_zero_string ( unsigned &  len)
inline
unsigned Utcb::Frame::identity ( unsigned  skip = 0)
inline
Frame& Utcb::Frame::operator<< ( Crd  value)
inline

Set receive window for the next call. This will not work with StaticPortalFunc! Use this only in custom protocols.

unsigned Utcb::Frame::received_cap ( )
inline

Returns the first capability in the first range delegated to us.

unsigned Utcb::Frame::received_item ( unsigned  skip = 0)
inline

Returns the skip-th delegated capability range descriptor.

Crd Utcb::Frame::translated_cap ( unsigned  skip = 0)
inline
unsigned Utcb::Frame::typed ( )
inline
unsigned short Utcb::Frame::unconsumed ( )
inline
unsigned Utcb::Frame::untyped ( )
inline

Member Data Documentation

unsigned Utcb::Frame::_consumed
private
unsigned Utcb::Frame::_end
private
Utcb* Utcb::Frame::_utcb
private

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