L4Re - L4 Runtime Environment
L4Re::Vfs::Ops Class Referenceabstract

Interface for the POSIX backends for an application. More...

#include <vfs.h>

+ Inheritance diagram for L4Re::Vfs::Ops:
+ Collaboration diagram for L4Re::Vfs::Ops:

Additional Inherited Members

- Public Member Functions inherited from L4Re::Vfs::Mman
virtual int mmap2 (void *start, size_t len, int prot, int flags, int fd, off_t offset, void **ptr)=0 throw ()
 Backend for the mmap2 system call.
 
virtual int munmap (void *start, size_t len)=0 throw ()
 Backend for the munmap system call.
 
virtual int mremap (void *old, size_t old_sz, size_t new_sz, int flags, void **new_addr)=0 throw ()
 Backend for the mremap system call.
 
virtual int mprotect (const void *a, size_t sz, int prot)=0 throw ()
 Backend for the mprotect system call.
 
virtual int msync (void *addr, size_t len, int flags)=0 throw ()
 Backend for the msync system call.
 
virtual int madvise (void *addr, size_t len, int advice)=0 throw ()
 Backend for the madvice system call.
 
- Public Member Functions inherited from L4Re::Vfs::Fs
virtual cxx::Ref_ptr< Fileget_file (int fd)=0 throw ()
 Get the L4Re::Vfs::File for the file descriptor fd. More...
 
virtual cxx::Ref_ptr< Fileget_root ()=0 throw ()
 Get the directory object for the applications root directory.
 
virtual cxx::Ref_ptr< Fileget_cwd () throw ()
 Get the directory object for the applications current working directory.
 
virtual void set_cwd (cxx::Ref_ptr< File > const &) throw ()
 Set the current working directory for the application.
 
virtual int alloc_fd (cxx::Ref_ptr< File > const &f=cxx::Ref_ptr<>::Nil)=0 throw ()
 Allocate the next free file descriptor. More...
 
virtual cxx::Ref_ptr< Fileset_fd (int fd, cxx::Ref_ptr< File > const &f=cxx::Ref_ptr<>::Nil)=0 throw ()
 Set the file object referenced by the file descriptor fd. More...
 
virtual cxx::Ref_ptr< Filefree_fd (int fd)=0 throw ()
 Free the file descriptor fd. More...
 
virtual int mount (char const *path, cxx::Ref_ptr< File > const &dir)=0 throw ()
 Mount a given file object at the given global path in the VFS. More...
 
int mount (char const *source, char const *target, char const *fstype, unsigned long mountflags, void const *data) throw ()
 Backend for the POSIX mount call.
 

Detailed Description

Interface for the POSIX backends for an application.

Note
There usually exists a singe instance of this interface available via L4Re::Vfs::vfs_ops that is used for all kinds of C-Library functions.

Definition at line 988 of file vfs.h.


The documentation for this class was generated from the following file: