fprov-if.h File Reference

interface to file provider More...

#include <l4/l4rm/l4rm.h>

Go to the source code of this file.

Functions

int load_file (const char *fname, l4_threadid_t fprov_id, l4_threadid_t dsm_id, const char *search_path, int contiguous, l4_addr_t *addr, l4_size_t *size, l4dm_dataspace_t *ds)
 Get file from file provider.


Detailed Description

interface to file provider

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

Function Documentation

int load_file ( const char *  fname_and_arg,
l4_threadid_t  fprov_id,
l4_threadid_t  dsm_id,
const char *  search_path,
int  contiguous,
l4_addr_t *  addr,
l4_size_t *  size,
l4dm_dataspace_t *  ds 
)

Get file from file provider.

Parameters:
fname_and_arg file name (optional arguments are ignored)
search_path colon delemited paths to try to load the file
contiguous if !=0, ask file provider to create contiguos ds
fprov_id id of file provider
dsm_id id of dataspace manager
Return values:
addr Address the image was loaded to. If NULL, don't attach the image to our address space.
size size (in bytes) of the file as returned by fprov
ds associated dataspace
Returns:
0 on success


L4 Loader Reference Manual, part of DROPS  © 2000-2003