NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VirtualNetService Class Reference
Inheritance diagram for VirtualNetService:
ServiceProgram BaseService NovaProgram ProgramConsole BaseProgram CapAllocator InternalCapAllocator

Classes

struct  Session

Public Member Functions

 VirtualNetService ()
NORETURN void run (Utcb *utcb, Hip *hip)

Protected Member Functions

BaseSessionnew_session ()
unsigned client_func (unsigned pt_id, Session *session, Utcb *utcb)
- Protected Member Functions inherited from ServiceProgram
virtual cap_sel alloc_cap ()
virtual void dealloc_cap (cap_sel c)
cap_sel create_ec (phy_cpu_no cpu, Utcb **utcb_out)
 ServiceProgram (const char *console_name="service")
- Protected Member Functions inherited from BaseService
void garbace_collect (per_cpu &local)
virtual void close_session (per_cpu &local, BaseSession *s)
- Protected Member Functions inherited from NovaProgram
Utcballoc_utcb ()
 Alloc a region of virtual memory to put an EC into.
template<class C >
 __attribute__ ((nonnull(6))) unsigned create_ec_helper(C *tls
 Create an EC and setup the stack.
void init_mem (Hip *hip)
 Init the memory map from the HIP as we get them from sigma0.
void __attribute__ ((noreturn)) block_forever()
 Block ourself.
- Protected Member Functions inherited from ProgramConsole
void console_init (const char *name, Semaphore *sem)

Static Protected Member Functions

static unsigned client_func_s (unsigned pt_id, Session *s, VirtualNetService *tls, Utcb *utcb) REGPARM(2)

Protected Attributes

ReceiveBufferDescriptor _rb [MAXCLIENTS]

Static Protected Attributes

static const unsigned MAXCLIENTS = 1024
static const unsigned BUFFER_SIZE = 1024*128

Additional Inherited Members

- Static Public Member Functions inherited from NovaProgram
static void exit (const char *msg)
 Default exit function.
- Public Attributes inherited from CapAllocator
unsigned long _cap_
unsigned long _cap_start
unsigned long _cap_order
- Static Public Attributes inherited from BaseProgram
static const unsigned stack_size_shift = 12
static const unsigned stack_size = (1U << stack_size_shift)

Constructor & Destructor Documentation

VirtualNetService::VirtualNetService ( )
inline

Member Function Documentation

unsigned VirtualNetService::client_func ( unsigned  pt_id,
Session session,
Utcb utcb 
)
inlineprotected
static unsigned VirtualNetService::client_func_s ( unsigned  pt_id,
Session s,
VirtualNetService tls,
Utcb utcb 
)
inlinestaticprotected
BaseSession* VirtualNetService::new_session ( )
inlineprotectedvirtual

Implements BaseService.

NORETURN void VirtualNetService::run ( Utcb utcb,
Hip hip 
)
inline

Member Data Documentation

ReceiveBufferDescriptor VirtualNetService::_rb[MAXCLIENTS]
protected
const unsigned VirtualNetService::BUFFER_SIZE = 1024*128
staticprotected
const unsigned VirtualNetService::MAXCLIENTS = 1024
staticprotected

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