Macros | Functions
erika/osal.c File Reference
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <osal.h>
#include "ee_x86_64_tsc.h"
Include dependency graph for erika/osal.c:

Go to the source code of this file.

Macros

#define NSECS_PER_SEC   1000000000
 
#define USECS_PER_SEC   1000000
 

Functions

void ee_usleep (uint32 usec)
 
ec_timet osal_current_time (void)
 
void osal_free (void *ptr)
 
int osal_gettimeofday (struct timeval *tv, struct timezone *tz)
 
void * osal_malloc (size_t size)
 
void osal_time_diff (ec_timet *start, ec_timet *end, ec_timet *diff)
 
boolean osal_timer_is_expired (osal_timert *self)
 
void osal_timer_start (osal_timert *self, uint32 timeout_usec)
 
int osal_usleep (uint32 usec)
 
uint64_t osEE_x86_64_tsc_read (void)
 

Macro Definition Documentation

◆ NSECS_PER_SEC

#define NSECS_PER_SEC   1000000000

Definition at line 16 of file erika/osal.c.

◆ USECS_PER_SEC

#define USECS_PER_SEC   1000000

Definition at line 15 of file erika/osal.c.

Function Documentation

◆ ee_usleep()

void ee_usleep ( uint32  usec)

◆ osal_current_time()

ec_timet osal_current_time ( void  )

Definition at line 37 of file erika/osal.c.

◆ osal_free()

void osal_free ( void *  ptr)

Definition at line 99 of file erika/osal.c.

◆ osal_gettimeofday()

int osal_gettimeofday ( struct timeval *  tv,
struct timezone *  tz 
)

Definition at line 28 of file erika/osal.c.

◆ osal_malloc()

void* osal_malloc ( size_t  size)

Definition at line 94 of file erika/osal.c.

◆ osal_time_diff()

void osal_time_diff ( ec_timet start,
ec_timet end,
ec_timet diff 
)

Definition at line 48 of file erika/osal.c.

◆ osal_timer_is_expired()

boolean osal_timer_is_expired ( osal_timert self)

Definition at line 74 of file erika/osal.c.

◆ osal_timer_start()

void osal_timer_start ( osal_timert self,
uint32  timeout_usec 
)

Definition at line 59 of file erika/osal.c.

◆ osal_usleep()

int osal_usleep ( uint32  usec)
inline

Definition at line 22 of file erika/osal.c.

◆ osEE_x86_64_tsc_read()

uint64_t osEE_x86_64_tsc_read ( void  )


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49