main.c File Reference

'main' of the con server More...

Go to the source code of this file.

Functions

static void do_switch (int i_new, int i_old)
static void fast_memcpy (l4_uint8_t *dst, l4_uint8_t *src, l4_size_t size)
static void fast_memcpy_mmx2_32 (l4_uint8_t *dst, l4_uint8_t *src, l4_size_t size)
static int get_free_vc (void)
 Find first available (non-opened) vc in list.
static int redraw_vc (void)
 send con_event redraw.
static int background_vc (void)
 send con_event background.
void request_vc (int nr)
 Announce that we want to switch to another console.
void request_vc_delta (int delta)
 Announce that we want to switch to another console.
static void switch_vc (void)
 Switch to other console (want_vc != fg_vc).
long con_if_openqry_component (CORBA_Object _dice_corba_obj, unsigned long sbuf1_size, unsigned long sbuf2_size, unsigned long sbuf3_size, unsigned char priority, l4_threadid_t *vcid, short vfbmode, CORBA_Server_Environment *_dice_corba_env)
 Query for new (not opened) virtual console.
long con_if_screenshot_component (CORBA_Object _dice_corba_obj, short vc_nr, l4dm_dataspace_t *ds, l4_uint32_t *xres, l4_uint32_t *yres, l4_uint32_t *bpp, CORBA_Server_Environment *_dice_corba_env)
long con_if_close_all_component (CORBA_Object _dice_corba_obj, const l4_threadid_t *client, CORBA_Server_Environment *_dice_corba_env)
 Close all virtual consoles of a client.
static void test_periodic (void)
void switch_vc_on_timer (l4_msgdope_t result, CORBA_Server_Environment *env)
static void server_loop (void)
static void check_fast_memcpy (void)
static void check_cpuload (void)
int console_puts (const char *s)
static void my_LOG_outstring (const char *s)
 asm (".globl jiffies")
int main (int argc, const char *argv[])
 Main function.

Variables

char LOG_tag [9] = "con"
l4_ssize_t l4libc_heapsize = CONFIG_MALLOC_MAX_SIZE
int noaccel
int nolog
int pan
int use_fastmemcpy = 1
int cpu_load
int cpu_load_history
int vbemode
struct l4con_vc * vc [MAX_NR_L4CONS]
int fg_vc = -1
int want_vc = 0
int update_id
l4lock_t want_vc_lock = L4LOCK_UNLOCKED
l4_threadid_t ev_partner_l4id = L4_NIL_ID
l4_threadid_t vc_partner_l4id = L4_NIL_ID
l4_uint8_t vc_mode = CON_CLOSED


Detailed Description

'main' of the con server

Date:
2001
Author:
Christian Helmuth <ch12@os.inf.tu-dresden.de> Frank Mehnert <fm3@os.inf.tu-dresden.de>

Definition in file main.c.


Function Documentation

static int background_vc ( void   )  [static]

send con_event background.

Definition at line 203 of file main.c.

long con_if_close_all_component ( CORBA_Object  _dice_corba_obj,
const l4_threadid_t *  client,
CORBA_Server_Environment *  _dice_corba_env 
)

Close all virtual consoles of a client.

in: request ... Flick request structure client ... id of client to close all vcs off out: _ev ... Flick exception (unused) ret: 0 ... success -??? ... if some error occured on closing a vc

Definition at line 664 of file main.c.

long con_if_openqry_component ( CORBA_Object  _dice_corba_obj,
unsigned long  sbuf1_size,
unsigned long  sbuf2_size,
unsigned long  sbuf3_size,
unsigned char  priority,
l4_threadid_t *  vcid,
short  vfbmode,
CORBA_Server_Environment *  _dice_corba_env 
)

Query for new (not opened) virtual console.

in: request ... Flick request structure sbuf_size ... max IPC string buffer out: vcid ... threadid of vc_thread _ev ... Flick exception (unused) ret: 0 ... success -??? ... if no VC unused

Definition at line 480 of file main.c.

static int get_free_vc ( void   )  [static]

Find first available (non-opened) vc in list.

Definition at line 146 of file main.c.

static int redraw_vc ( void   )  [static]

send con_event redraw.

Precondition:
have want_vc_lock

Definition at line 163 of file main.c.

void request_vc ( int  nr  ) 

Announce that we want to switch to another console.

This function should not block for a longer time.

Definition at line 236 of file main.c.

void request_vc_delta ( int  delta  ) 

Announce that we want to switch to another console.

This function should not block for a longer time.

Definition at line 246 of file main.c.

static void switch_vc ( void   )  [static]

Switch to other console (want_vc != fg_vc).

Precondition:
have want_vc_lock

Definition at line 271 of file main.c.


Generated on Wed Apr 11 06:37:05 2012 for DROPS Console: Internals by  doxygen 1.5.6