Overview   API Reference  

l4file Struct Reference

Class providing a file interface using L4's file provider as backend, thus writing is implemented but rather senseless. More...

#include <l4file.hpp>

Inheritance diagram for l4file:

Inheritance graph
[legend]
Collaboration diagram for l4file:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 l4file (const std::string &filename, const bool readonly=false)
virtual int open (const std::string &filename, bool readonly=false)
virtual int close (void)
virtual const char * name (void) const
virtual bool is_open (void) const
virtual bool is_readonly (void) const
virtual offset_t size (void) const
virtual offset_t read (uint8_t *buffer, offset_t offset, offset_t number)
virtual offset_t write (uint8_t *buffer, offset_t offset, offset_t number)
virtual int flush (void)
uint8_t * data (offset_t offset=0) const

Static Protected Member Functions

static const l4env_infopage_t * get_l4env_infopage (void)

Protected Attributes

struct dataspace dataspace
bool readonly
uint8_t * _data
offset_t _size


Detailed Description

Class providing a file interface using L4's file provider as backend, thus writing is implemented but rather senseless.
The documentation for this struct was generated from the following files:

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008