POSIX File-system related functionality.
More...
#include <vfs.h>
POSIX File-system related functionality.
- Note
- This class usually exists as a singleton as a superclass of L4Re::Vfs::Ops (
- See also
- L4Re::Vfs::vfs_ops).
Definition at line 873 of file vfs.h.
◆ alloc_fd()
Allocate the next free file descriptor.
- Parameters
-
f | The file to assign to that file descriptor. |
- Returns
- the allocated file descriptor, or -EMFILE on error.
◆ free_fd()
Free the file descriptor fd.
- Parameters
-
fd | The file descriptor to free. |
- Returns
- A pointer to the file object that was assigned to the fd.
◆ get_file()
Get the L4Re::Vfs::File for the file descriptor fd.
- Parameters
-
fd | The POSIX file descriptor number. |
- Returns
- A pointer to the File object, or 0 if fd is not open.
◆ mount()
virtual int L4Re::Vfs::Fs::mount |
( |
char const * |
path, |
|
|
cxx::Ref_ptr< File > const & |
dir |
|
) |
| |
throw | ( | |
| ) | | |
|
pure virtual |
Mount a given file object at the given global path in the VFS.
- Parameters
-
path | The global path to mount dir at. |
dir | A pointer to the file/directory object that shall be mounted at path. |
- Returns
- 0 on success, or <0 on error.
◆ set_fd()
Set the file object referenced by the file descriptor fd.
- Parameters
-
fd | The file descriptor to set to f; |
f | The file object to assign. |
- Returns
- A pointer to the file object that was previously assigned to fd.
The documentation for this class was generated from the following file: