idl.c File Reference
implemented IDL interface support functions
More...
#include "idl.h"
#include <stdio.h>
#include <l4/env/errno.h>
#include <l4/dm_mem/dm_mem.h>
#include <l4/l4rm/l4rm.h>
#include <l4/util/util.h>
#include "cfg.h"
#include "app.h"
#include "dm-if.h"
#include "lib.h"
|
Functions |
int | return_error_msg (int error, const char *const msg, const char *fname) |
| write error message in buffer to return to client
|
long | l4loader_app_open_component (CORBA_Object _dice_corba_obj, const l4dm_dataspace_t *img_ds, const char *fname, const l4_threadid_t *fprov, unsigned long flags, l4_taskid_t task_ids[16], char **error_msg, CORBA_Server_Environment *_dice_corba_env) |
| Load application.
|
long | l4loader_app_cont_component (CORBA_Object _dice_corba_obj, const l4_taskid_t *taskid, CORBA_Server_Environment *_dice_corba_env) |
| Continue application which was stopped just before the real start.
|
long | l4loader_app_kill_component (CORBA_Object _dice_corba_obj, const l4_taskid_t *task_id, unsigned long flags, CORBA_Server_Environment *_dice_corba_env) |
| Kill application.
|
long | l4loader_app_dump_component (CORBA_Object _dice_corba_obj, unsigned long task_id, unsigned long flags, CORBA_Server_Environment *_dice_corba_env) |
| Dump application.
|
long | l4loader_app_info_component (CORBA_Object _dice_corba_obj, unsigned long task_id, unsigned long flags, char **fname, l4dm_dataspace_t *l4env_page, CORBA_Server_Environment *_dice_corba_env) |
| Get application info.
|
void | server_loop (void) |
| IDL server loop.
|
Variables |
static char | error_message [80] |
Detailed Description
implemented IDL interface support functions
- Date:
- 06/11/2001
- Author:
- Frank Mehnert
Function Documentation
long l4loader_app_cont_component |
( |
CORBA_Object |
_dice_corba_obj, |
|
|
const l4_taskid_t * |
taskid, |
|
|
CORBA_Server_Environment * |
_dice_corba_env | |
|
) |
| | |
Continue application which was stopped just before the real start.
- Parameters:
-
| client | caller |
| taskid | ID of task to continue as returned by open() |
- Return values:
-
| _env | IDL exception structure |
long l4loader_app_dump_component |
( |
CORBA_Object |
_dice_corba_obj, |
|
|
unsigned long |
task_id, |
|
|
unsigned long |
flags, |
|
|
CORBA_Server_Environment * |
_dice_corba_env | |
|
) |
| | |
Dump application.
- Parameters:
-
| client | caller |
| task_id | id of task to dump |
| flags | flags (currently unused) |
- Return values:
-
| _env | IDL exception structure |
- Returns:
- 0 on success
long l4loader_app_info_component |
( |
CORBA_Object |
_dice_corba_obj, |
|
|
unsigned long |
task_id, |
|
|
unsigned long |
flags, |
|
|
char ** |
fname, |
|
|
l4dm_dataspace_t * |
l4env_page, |
|
|
CORBA_Server_Environment * |
_dice_corba_env | |
|
) |
| | |
Get application info.
- Parameters:
-
| client | caller |
| task_id | id of task to get info from |
| flags | flags (currently unused) |
- Return values:
-
| fname | application name |
| l4env_page | L4 environment infopage of process |
| _env | IDL exception structure |
- Returns:
- 0 on success
long l4loader_app_kill_component |
( |
CORBA_Object |
_dice_corba_obj, |
|
|
const l4_taskid_t * |
task_id, |
|
|
unsigned long |
flags, |
|
|
CORBA_Server_Environment * |
_dice_corba_env | |
|
) |
| | |
Kill application.
- Parameters:
-
| client | caller |
| task_id | ID of task to kill as returned by open() |
| flags | flags (currently unused) |
- Return values:
-
| _env | IDL exception structure |
- Returns:
- 0 on success
long l4loader_app_open_component |
( |
CORBA_Object |
_dice_corba_obj, |
|
|
const l4dm_dataspace_t * |
img_ds, |
|
|
const char * |
fname, |
|
|
const l4_threadid_t * |
fprov, |
|
|
unsigned long |
flags, |
|
|
l4_taskid_t |
task_ids[16], |
|
|
char ** |
error_msg, |
|
|
CORBA_Server_Environment * |
_dice_corba_env | |
|
) |
| | |
Load application.
- Parameters:
-
| client | caller |
| img_ds | dataspace containing the script or binary |
| fname | file name |
| fprov | file provider to get the file image from |
| flags | flags (currently unused) |
- Return values:
-
| task_ids | IDs of started tasks |
| error_msg | error message |
| _env | IDL exception structure |
- Returns:
- 0 on success