Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

gkemu.c File Reference


Detailed Description

Implementation of the functions in gkemu.h.

Definition in file gkemu.c.

Include dependency graph for gkemu.c:

Include dependency graph

Go to the source code of this file.

Functions

int gkFormatPreamble (char *buf, size_t buf_len, gka_tag_t tag,...)
 Format the preamble into the given buffer.

int gkFormatUpdate (char *buf, size_t buf_len, gka_tag_t tag,...)
 Format an update into the given buffer.


Variables

const char * gkInitialUpdateOpen = "<initial_update>\n"
 Tag string used to mark the beginning of the "initial update".

const char * gkInitialUpdateClose = "</initial_update>\n"
 Tag string used to mark the end of the "initial update".


Function Documentation

int gkFormatPreamble char *  buf,
size_t  buf_len,
gka_tag_t  tag,
... 
 

Format the preamble into the given buffer.

Parameters:
buf The buffer to fill with the preamble.
buf_len The length, in bytes, of 'buf'.
tag The beginning of the tag arguments.
Returns:
The length of preamble in the buffer.

Definition at line 34 of file gkemu.c.

References ensure, GKA_HostName, GKA_SystemName, GKA_TAG_DONE, gka_tag_t, and require.

Referenced by sigio().

int gkFormatUpdate char *  buf,
size_t  buf_len,
gka_tag_t  tag,
... 
 

Format an update into the given buffer.

Parameters:
buf The buffer to fill with the preamble.
buf_len The length, in bytes, of 'buf'.
tag The beginning of the tag arguments.
Returns:
The length of the update in the buffer.

Definition at line 109 of file gkemu.c.

References ensure, GKA_CPUIdle, GKA_CPUReserveIdle, GKA_CPUReserveNice, GKA_CPUReserveUser, GKA_CPUUser, GKA_Processes, GKA_ProcessesRunning, GKA_TAG_DONE, gka_tag_t, GKA_UpTime, and require.

Referenced by sigalrm().


Generated on Mon Dec 1 16:29:34 2003 for CPU Broker by doxygen 1.3.4