|
L4Re Operating System Framework
Interface and Usage Documentation
|
Implementation for files backed by an L4Re::Dataspace abstraction. More...
#include <ds_file.h>
Public Member Functions | |
| L4::Cap< L4Re::Dataspace > | data_space () noexcept override |
| Get an L4Re::Dataspace object for the file. | |
| int | fstat (struct stat64 *buf) const noexcept override |
| Get status information for the file. | |
| int | ioctl (unsigned long, va_list) noexcept override |
| The famous IO control. | |
| int | get_status_flags () const noexcept override |
| Get file status flags (fcntl F_GETFL). | |
| int | set_status_flags (long) noexcept override |
| Set file status flags (fcntl F_SETFL). | |
| bool | check_ready (Ready_type rt) noexcept override |
| Check whether the file is ready for an I/O operation/condition. | |
Implementation for files backed by an L4Re::Dataspace abstraction.
|
inlineoverridevirtualnoexcept |
Check whether the file is ready for an I/O operation/condition.
By definition, a dataspace-backed file is always ready for reading. If the file has write permissions, it is also always ready for writing.
| rt | Type of the I/O operation/condition to be ready. |
Implements L4Re::Vfs::Generic_file.
|
inlineoverridevirtualnoexcept |
Get an L4Re::Dataspace object for the file.
This is used as a backend for POSIX mmap and mmap2 functions.
Implements L4Re::Vfs::Regular_file.
|
overridevirtualnoexcept |
Get status information for the file.
This is the backend for POSIX fstat, stat, fstat64 and friends.
| [out] | buf | This buffer is filled with the status information. |
Implements L4Re::Vfs::Generic_file.
Definition at line 27 of file ds_file_impl.h.
References L4_PAGESIZE, and l4_round_page().
|
inlineoverridevirtualnoexcept |
Get file status flags (fcntl F_GETFL).
This function is used by the fcntl implementation for the F_GETFL command.
Implements L4Re::Vfs::Generic_file.
|
overridevirtualnoexcept |
The famous IO control.
Backend for POSIX generic object invocation ioctl.
| cmd | The ioctl command. |
| args | The arguments for the ioctl, usually some kind of pointer. |
Implements L4Re::Vfs::Special_file.
Definition at line 192 of file ds_file_impl.h.
|
inlineoverridevirtualnoexcept |
Set file status flags (fcntl F_SETFL).
This function is used by the fcntl implementation for the F_SETFL command.
| flags | The file status flags to set. This must be a combination of O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_ASYNC, O_DIRECT, O_NOATIME, O_NONBLOCK. |
Implements L4Re::Vfs::Generic_file.