fprov-if.c File Reference

Helper functions for communicating with file provider. More...

#include "fprov-if.h"
#include "cfg.h"
#include "global.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <l4/env/errno.h>
#include <l4/names/libnames.h>
#include <l4/generic_fprov/generic_fprov-client.h>

Defines

#define min(x, y)   ((x)<(y)?(x):(y))
#define max(x, y)   ((x)>(y)?(x):(y))

Functions

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.

Variables

l4_threadid_t tftp_id = L4_INVALID_ID


Detailed Description

Helper functions for communicating with file provider.

Date:
06/11/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