src/include/minix/sysutil.h File Reference

#include <minix/ipc.h>

Go to the source code of this file.

Classes

struct  util_timingdata

Defines

#define _MINIX_SYSUTIL_H   1
#define EP_BUF_SIZE   128
#define EP_UNSET   0
#define EP_OFF   1
#define EP_ON   2
#define EP_SET   3
#define EP_EGETKENV   4
#define fkey_map(fkeys, sfkeys)   fkey_ctl(FKEY_MAP, (fkeys), (sfkeys))
#define fkey_unmap(fkeys, sfkeys)   fkey_ctl(FKEY_UNMAP, (fkeys), (sfkeys))
#define fkey_events(fkeys, sfkeys)   fkey_ctl(FKEY_EVENTS, (fkeys), (sfkeys))
#define asynsend(ep, msg)   asynsend3(ep, msg, 0)
#define ASSERT(c)   if(!(c)) { panic(__FILE__, "assert " #c " failed at line", __LINE__); }
#define TIMING_CATEGORIES   20
#define TIMING_POINTS   20
#define TIMING_CATEGORIES   20
#define TIMING_NAME   10

Typedefs

typedef struct util_timingdata util_timingdata_t

Functions

 _PROTOTYPE (void env_setargs,(int argc, char *argv[]))
 _PROTOTYPE (int env_get_param,(char *key, char *value, int max_size))
 _PROTOTYPE (int env_prefix,(char *env, char *prefix))
 _PROTOTYPE (void env_panic,(char *key))
 _PROTOTYPE (int env_parse,(char *env, char *fmt, int field, long *param, long min, long max))
 _PROTOTYPE (int fkey_ctl,(int req, int *fkeys, int *sfkeys))
 _PROTOTYPE (int printf,(const char *fmt,...))
 _PROTOTYPE (void kputc,(int c))
 _PROTOTYPE (void report,(char *who, char *mess, int num))
 _PROTOTYPE (int getuptime,(clock_t *ticks))
 _PROTOTYPE (int getuptime2,(clock_t *ticks, time_t *boottime))
 _PROTOTYPE (int tickdelay,(clock_t ticks))
 _PROTOTYPE (int tsc_calibrate,(void))
 _PROTOTYPE (u32_t sys_hz,(void))
 _PROTOTYPE (double getidle,(void))
 _PROTOTYPE (void util_stacktrace,(void))
 _PROTOTYPE (void util_nstrcat,(char *str, unsigned long n))
 _PROTOTYPE (void util_stacktrace_strcat,(char *))
 _PROTOTYPE (int micro_delay,(u32_t micros))
 _PROTOTYPE (u32_t tsc_64_to_micros,(u64_t tsc))
 _PROTOTYPE (u32_t tsc_to_micros,(u32_t low, u32_t high))
 _PROTOTYPE (u32_t micros_to_ticks,(u32_t micros))
 _PROTOTYPE (void ser_putc,(char c))
 _PROTOTYPE (void get_randomness,(struct k_randomness *, int))
 _PROTOTYPE (int asynsend3,(endpoint_t ep, message *msg, int flags))
 _PROTOTYPE (void read_tsc_64,(u64_t *t))
 _PROTOTYPE (void read_tsc,(u32_t *hi, u32_t *lo))


Define Documentation

#define _MINIX_SYSUTIL_H   1

Definition at line 2 of file sysutil.h.

#define ASSERT ( c   )     if(!(c)) { panic(__FILE__, "assert " #c " failed at line", __LINE__); }

Definition at line 68 of file sysutil.h.

#define asynsend ( ep,
msg   )     asynsend3(ep, msg, 0)

Definition at line 65 of file sysutil.h.

#define EP_BUF_SIZE   128

Definition at line 26 of file sysutil.h.

#define EP_EGETKENV   4

Definition at line 31 of file sysutil.h.

#define EP_OFF   1

Definition at line 28 of file sysutil.h.

#define EP_ON   2

Definition at line 29 of file sysutil.h.

#define EP_SET   3

Definition at line 30 of file sysutil.h.

#define EP_UNSET   0

Definition at line 27 of file sysutil.h.

#define fkey_events ( fkeys,
sfkeys   )     fkey_ctl(FKEY_EVENTS, (fkeys), (sfkeys))

Definition at line 42 of file sysutil.h.

#define fkey_map ( fkeys,
sfkeys   )     fkey_ctl(FKEY_MAP, (fkeys), (sfkeys))

Definition at line 40 of file sysutil.h.

#define fkey_unmap ( fkeys,
sfkeys   )     fkey_ctl(FKEY_UNMAP, (fkeys), (sfkeys))

Definition at line 41 of file sysutil.h.

#define TIMING_CATEGORIES   20

Definition at line 74 of file sysutil.h.

#define TIMING_CATEGORIES   20

Definition at line 74 of file sysutil.h.

#define TIMING_NAME   10

Definition at line 75 of file sysutil.h.

#define TIMING_POINTS   20

Definition at line 73 of file sysutil.h.


Typedef Documentation

Definition at line 85 of file sysutil.h.


Function Documentation

_PROTOTYPE ( void  read_tsc,
(u32_t *hi, u32_t *lo)   
)

_PROTOTYPE ( void  read_tsc_64,
(u64_t *t  
)

_PROTOTYPE ( int  asynsend3,
(endpoint_t ep, message *msg, int flags  
)

_PROTOTYPE ( void  get_randomness,
(struct k_randomness *, int)   
)

_PROTOTYPE ( void  ser_putc,
(char c  
)

_PROTOTYPE ( u32_t  micros_to_ticks,
(u32_t micros)   
)

_PROTOTYPE ( u32_t  tsc_to_micros,
(u32_t low, u32_t high)   
)

_PROTOTYPE ( u32_t  tsc_64_to_micros,
(u64_t tsc)   
)

_PROTOTYPE ( int  micro_delay,
(u32_t micros)   
)

_PROTOTYPE ( void  util_stacktrace_strcat,
(char *)   
)

_PROTOTYPE ( void  util_nstrcat,
(char *str, unsigned long n  
)

_PROTOTYPE ( void  util_stacktrace,
(void)   
)

_PROTOTYPE ( double  getidle,
(void)   
)

_PROTOTYPE ( u32_t  sys_hz,
(void)   
)

_PROTOTYPE ( int  tsc_calibrate,
(void)   
)

_PROTOTYPE ( int  tickdelay,
(clock_t ticks)   
)

_PROTOTYPE ( int  getuptime2,
(clock_t *ticks, time_t *boottime  
)

_PROTOTYPE ( int  getuptime,
(clock_t *ticks)   
)

_PROTOTYPE ( void  report,
(char *who, char *mess, int num)   
)

_PROTOTYPE ( void  kputc,
(int c  
)

_PROTOTYPE ( int  printf,
(const char *fmt,...)   
)

_PROTOTYPE ( int  fkey_ctl,
(int req, int *fkeys, int *sfkeys)   
)

_PROTOTYPE ( int  env_parse,
(char *env, char *fmt, int field, long *param, long min, long max)   
)

_PROTOTYPE ( void  env_panic,
(char *key  
)

_PROTOTYPE ( int  env_prefix,
(char *env, char *prefix)   
)

_PROTOTYPE ( int  env_get_param,
(char *key, char *value, int max_size)   
)

_PROTOTYPE ( void  env_setargs,
(int argc, char *argv[])   
)


Generated on Tue Mar 9 04:36:53 2010 for Minix by  doxygen 1.5.8