Classes | Functions

base/apps/sigma0/service_timer.cc File Reference

#include "nul/motherboard.h"
#include "nul/timer.h"
#include "sys/semaphore.h"
#include "service/lifo.h"
#include "nul/parent.h"
#include "nul/generic_service.h"
#include "nul/service_timer.h"
#include "nul/capalloc.h"

Classes

class  TimerService
 Timer service. More...
struct  TimerService::ClientData

Functions

 PARAM (service_timer, unsigned cap_region=alloc_cap_region(1<< 12, 12);char *revoke_mem=new(0x1000) char[0x1000];TimerService *t=new(8) TimerService(mb, cap_region, 12, revoke_mem);MessageHostOp msg(t,"/timer", reinterpret_cast< unsigned long >(StaticPortalFunc< TimerService >::portal_func), revoke_mem);msg.crd_t=Crd(cap_region, 12, DESC_TYPE_CAP).value();if(!cap_region||!mb.bus_hostop.send(msg)) Logging::panic("starting of timer service failed");,"service_timer - multiplexes either the hosthpet or the hostpit between different clients")

Function Documentation

PARAM ( service_timer  ,
unsigned  cap_region = alloc_cap_region(1<< 12, 12);char *revoke_mem=new(0x1000) char[0x1000];TimerService *t=new(8) TimerService(mb, cap_region, 12, revoke_mem);MessageHostOp msg(t,"/timer", reinterpret_cast< unsigned long >(StaticPortalFunc< TimerService >::portal_func), revoke_mem);msg.crd_t=Crd(cap_region, 12, DESC_TYPE_CAP).value();if(!cap_region||!mb.bus_hostop.send(msg)) Logging::panic("starting of timer service failed");,
"service_timer - multiplexes either the hosthpet or the hostpit between different clients"   
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines