KLog

HelenOS KLog. More...

Files

file  klog.c

Data Structures

struct  item_t

Defines

#define LOG_FNAME   "/log/klog"
#define NAME   "klog"

Functions

static int consumer (void *data)
 Klog consumer.
int main (int argc, char *argv[])
static void notification_received (ipc_callid_t callid, ipc_call_t *call)
 Kernel notification handler.
static void producer (size_t length, wchar_t *data)
 Klog producer.

Variables

static wchar_t * klog
static size_t klog_length
static prodcons_t pc

Detailed Description

HelenOS KLog.


Function Documentation

static int consumer ( void *  data  )  [static]

Klog consumer.

Waits in an infinite loop for the character data created by the producer and outputs them to stdout and optionally into a file.

Parameters:
data Unused.
Returns:
Always EOK (unreachable).

Definition at line 111 of file klog.c.

static void notification_received ( ipc_callid_t  callid,
ipc_call_t call 
) [static]

Kernel notification handler.

Receives kernel klog notifications.

Parameters:
callid IPC call ID.
call IPC call structure.

Definition at line 149 of file klog.c.

static void producer ( size_t  length,
wchar_t *  data 
) [static]

Klog producer.

Copies the contents of a character buffer to local producer/consumer queue.

Parameters:
length Number of characters to copy.
data Pointer to the kernel klog buffer.

Definition at line 79 of file klog.c.


Generated on Thu Jun 2 07:45:56 2011 for HelenOS/USB by  doxygen 1.4.7