|
Miosix
2.0alpha1
|


Public Member Functions | |
| DevFsFile (intrusive_ref_ptr< FilesystemBase > fs, intrusive_ref_ptr< Device > dev, int flags) | |
| virtual ssize_t | write (const void *data, size_t len) |
| virtual ssize_t | read (void *data, size_t len) |
| virtual off_t | lseek (off_t pos, int whence) |
| virtual int | fstat (struct stat *pstat) const |
| virtual int | isatty () const |
| virtual int | ioctl (int cmd, void *arg) |
Public Member Functions inherited from miosix::FileBase | |
| FileBase (intrusive_ref_ptr< FilesystemBase > parent) | |
| virtual int | fcntl (int cmd, int opt) |
| virtual int | getdents (void *dp, int len) |
| const intrusive_ref_ptr < FilesystemBase > | getParent () const |
| virtual | ~FileBase () |
Additional Inherited Members | |
Protected Member Functions inherited from miosix::IntrusiveRefCounted | |
| IntrusiveRefCounted () | |
| IntrusiveRefCounted (const IntrusiveRefCounted &) | |
| IntrusiveRefCounted & | operator= (const IntrusiveRefCounted &) |
This file type is for reading and writing from devices
|
inline |
Constructor
| fs | pointer to DevFs |
| dev | the device to which this file refers |
| flags | file open flags (_FREAD, _FWRITE, ...) |
|
virtual |
Return file information.
| pstat | pointer to stat struct |
Implements miosix::FileBase.
|
virtual |
Perform various operations on a file descriptor
| cmd | specifies the operation to perform |
| arg | optional argument that some operation require |
Reimplemented from miosix::FileBase.
|
virtual |
Check whether the file refers to a terminal.
Reimplemented from miosix::FileBase.
|
virtual |
Move file pointer, if the file supports random-access.
| pos | offset to sum to the beginning of the file, current position or end of file, depending on whence |
| whence | SEEK_SET, SEEK_CUR or SEEK_END |
Implements miosix::FileBase.
|
virtual |
Read data from the file, if the file supports reading.
| data | buffer to store read data |
| len | the number of bytes to read |
Implements miosix::FileBase.
|
virtual |
Write data to the file, if the file supports writing.
| data | the data to write |
| len | the number of bytes to write |
Implements miosix::FileBase.