L4Re - L4 Runtime Environment
L4Re::Vfs::Be_file_system Class Reference

Boilerplate class for implementing a L4Re::Vfs::File_system. More...

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

Public Member Functions

 Be_file_system (char const *fstype) throw ()
 Create a file-system object for the given fstype. More...
 
 ~Be_file_system () throw ()
 Destroy a file-system object. More...
 
char const * type () const throw ()
 Return the file-system type. More...
 
- Public Member Functions inherited from L4Re::Vfs::File_system
virtual int mount (char const *source, unsigned long mountflags, void const *data, cxx::Ref_ptr< File > *dir)=0 throw ()
 Create a directory object dir representing source mounted with this file system. More...
 

Detailed Description

Boilerplate class for implementing a L4Re::Vfs::File_system.

This class already takes care of registering and unregistering the file system in the global registry and implements the type() method.

Examples:
tmpfs/lib/src/fs.cc.

Definition at line 300 of file backend.

Constructor & Destructor Documentation

◆ Be_file_system()

L4Re::Vfs::Be_file_system::Be_file_system ( char const *  fstype)
throw (
)
inlineexplicit

Create a file-system object for the given fstype.

Parameters
fstypeThe type that type() shall return.

This constructor takes care of registering the file system in the registry of L4Re::Vfs::vfs_ops.

Definition at line 314 of file backend.

◆ ~Be_file_system()

L4Re::Vfs::Be_file_system::~Be_file_system ( )
throw (
)
inline

Destroy a file-system object.

This destructor takes care of removing this file system from the registry of L4Re::Vfs::vfs_ops.

Definition at line 326 of file backend.

Member Function Documentation

◆ type()

char const* L4Re::Vfs::Be_file_system::type ( ) const
throw (
)
inlinevirtual

Return the file-system type.

Returns the file-system type given as fstype in the constructor.

Implements L4Re::Vfs::File_system.

Definition at line 336 of file backend.


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