misc.h File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/time.h>
#include "sol_compat.h"
#include <stdarg.h>

Go to the source code of this file.

Defines

#define offsetof(s, m)   ((size_t)(&(((s *)0)->m)))
#define ASSERT(assertion)

Functions

void debug_printf (const char *format,...)
void log_message (const char *format,...)
int highbit (ulong_t) __attribute__((pure))
int lowbit (ulong_t) __attribute__((pure))
void hrt2ts (hrtime_t hrt, timestruc_t *tsp)
int print_sym (void *pointer)
void umem_printf (const char *format,...)
void umem_vprintf (const char *format, va_list)
void umem_printf_warn (void *ignored, const char *format,...)
void umem_error_enter (const char *)
void umem_panic (const char *format,...) __attribute__((noreturn))
void umem_err_recoverable (const char *format,...)
int __umem_assert_failed (const char *assertion, const char *file, int line) __attribute__((noreturn))
void * getfp (void)
int getpcstack (uintptr_t *pcstack, int pcstack_limit, int check_sighandler)

Variables

uint_t umem_abort
uint_t umem_output
caddr_t umem_min_stack
caddr_t umem_max_stack


Define Documentation

#define ASSERT ( assertion   ) 

#define offsetof ( s,
 )     ((size_t)(&(((s *)0)->m)))

Referenced by vmem_no_debug().


Function Documentation

int __umem_assert_failed ( const char *  assertion,
const char *  file,
int  line 
)

References umem_panic().

void debug_printf ( const char *  format,
  ... 
)

References UMEM_ERRFD, and UMEM_MAX_ERROR_SIZE.

void* getfp ( void   ) 

Referenced by getpcstack().

int getpcstack ( uintptr_t *  pcstack,
int  pcstack_limit,
int  check_sighandler 
)

int highbit ( ulong_t   ) 

void hrt2ts ( hrtime_t  hrt,
timestruc_t tsp 
)

References NANOSEC.

void log_message ( const char *  format,
  ... 
)

int lowbit ( ulong_t   ) 

Referenced by vmem_alloc(), and vmem_xalloc().

int print_sym ( void *  pointer  ) 

References umem_printf().

void umem_err_recoverable ( const char *  format,
  ... 
)

void umem_error_enter ( const char *   ) 

void umem_panic ( const char *  format,
  ... 
)

void umem_printf ( const char *  format,
  ... 
)

References umem_vprintf().

Referenced by print_sym(), and vmem_destroy().

void umem_printf_warn ( void *  ignored,
const char *  format,
  ... 
)

References umem_vprintf().

void umem_vprintf ( const char *  format,
va_list   
)


Variable Documentation

Referenced by umem_err_recoverable().

caddr_t umem_max_stack

Referenced by getpcstack().

caddr_t umem_min_stack

Referenced by getpcstack().

Referenced by log_message(), and umem_error_enter().


Generated on Wed Sep 9 01:04:53 2009 for umem by  doxygen 1.5.9