flusher.h File Reference

Log-Server, functions dealing with flushing the buffer. More...

Go to the source code of this file.

Functions

int flusher_init (void)
 Initialize the tcp-handling stuff.
int flush_buffer (void)
 Request flushing the buffer.
int do_flush_buffer (void)
 Flush the buffered data.

Variables

int flusher_prio
l4_threadid_t main_thread
l4_threadid_t flusher_thread


Detailed Description

Log-Server, functions dealing with flushing the buffer.

Date:
03/02/2001
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Definition in file flusher.h.


Function Documentation

int do_flush_buffer ( void   ) 

Flush the buffered data.

Context: Flusher thread.

net_flush_buffer() is exported from tcpip.c, console_flush() is a local function.

Definition at line 224 of file flusher.c.

References CONFIG_LOG_RINGBUFFER, and console_flush().

Referenced by thread_loop().

int flush_buffer ( void   ) 

Request flushing the buffer.

This function blocks until the buffer is flushed. If we are in muxed mode (flush_muxed==1), this function also flushes the binary buffers.

Context: Main thread, flush-signaller thread

Return values:
0 on success, error otherwise.

Definition at line 259 of file flusher.c.

Referenced by flush_signaller().

int flusher_init ( void   ) 

Initialize the tcp-handling stuff.

This function creates the TCP/IP handling thread. Then it waits for its startup-IPC.

Context: Main thread.

Returns:
0 on success

Definition at line 332 of file flusher.c.

References flush_signaller(), and thread_loop().


Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6