KLog
[Kernel console]

Kernel logging facility. More...

Files

file  klog.h
file  klog.c

Defines

#define KLOG_ORDER   0

Functions

void klog_init (void)
void klog_printf (const char *fmt,...)
 SPINLOCK_INITIALIZE (klog_lock)
static void klog_vprintf (const char *fmt, va_list args)

Variables

static char * klog
static int klogsize
static int klogpos

Detailed Description


Define Documentation

#define KLOG_ORDER   0
 

Definition at line 42 of file klog.c.

Referenced by klog_init().


Function Documentation

void klog_init void   ) 
 

Initialize kernel logging facility

Allocate pages that are to be shared with uspace for console data. The shared area is a circular buffer. Userspace application may be notified on new data with indication of position and size of the data within the circular buffer.

Definition at line 57 of file klog.c.

References frame_alloc, FRAME_ATOMIC, klog, KLOG_ORDER, klogpos, klogsize, NULL, PAGE_SIZE, panic, PFN2ADDR(), and sysinfo_set_item_val().

Referenced by main_bsp_separated_stack().

Here is the call graph for this function:

void klog_printf const char *  fmt,
  ...
 

Printf a message to kernel-uspace log

Definition at line 97 of file klog.c.

References klog_vprintf(), va_end, and va_start.

Referenced by ktaskclnp(), and syscall_handler().

Here is the call graph for this function:

static void klog_vprintf const char *  fmt,
va_list  args
[static]
 

Definition at line 73 of file klog.c.

References IPC_IRQ_KLOG, ipc_irq_send_msg(), klog, klogpos, klogsize, spinlock_lock, spinlock_unlock(), va_copy, va_end, and vsnprintf().

Referenced by klog_printf().

Here is the call graph for this function:

SPINLOCK_INITIALIZE klog_lock   ) 
 


Variable Documentation

char* klog [static]
 

Definition at line 44 of file klog.c.

Referenced by klog_init(), and klog_vprintf().

int klogpos [static]
 

Definition at line 46 of file klog.c.

Referenced by klog_init(), and klog_vprintf().

int klogsize [static]
 

Definition at line 45 of file klog.c.

Referenced by klog_init(), and klog_vprintf().


Generated on Sun Jun 18 16:36:20 2006 for HelenOS Kernel (amd64) by  doxygen 1.4.6