#include <vfile.h>
|
| ~VFile ()=default |
|
ssize_t | write (file_t *handlep, const char *buffer, size_t buflen) override |
| Perform a write to the device. More...
|
|
| CDev (const char *devname) |
| Constructor. More...
|
|
| CDev (const CDev &)=delete |
|
CDev & | operator= (const CDev &)=delete |
|
| CDev (CDev &&)=delete |
|
CDev & | operator= (CDev &&)=delete |
|
virtual | ~CDev () |
|
virtual int | init () |
|
virtual int | open (file_t *filep) |
| Handle an open of the device. More...
|
|
virtual int | close (file_t *filep) |
| Handle a close of the device. More...
|
|
virtual ssize_t | read (file_t *filep, char *buffer, size_t buflen) |
| Perform a read from the device. More...
|
|
virtual off_t | seek (file_t *filep, off_t offset, int whence) |
| Perform a logical seek operation on the device. More...
|
|
virtual int | ioctl (file_t *filep, int cmd, unsigned long arg) |
| Perform an ioctl operation on the device. More...
|
|
virtual int | poll (file_t *filep, px4_pollfd_struct_t *fds, bool setup) |
| Perform a poll setup/teardown operation. More...
|
|
const char * | get_devname () const |
| Get the device name. More...
|
|
Definition at line 48 of file vfile.h.
◆ ~VFile()
◆ VFile() [1/2]
cdev::VFile::VFile |
( |
const char * |
fname, |
|
|
mode_t |
mode |
|
) |
| |
|
private |
◆ VFile() [2/2]
cdev::VFile::VFile |
( |
const VFile & |
| ) |
|
|
private |
◆ createFile()
VFile * cdev::VFile::createFile |
( |
const char * |
fname, |
|
|
mode_t |
mode |
|
) |
| |
|
static |
◆ write()
ssize_t cdev::VFile::write |
( |
file_t * |
filep, |
|
|
const char * |
buffer, |
|
|
size_t |
buflen |
|
) |
| |
|
overridevirtual |
Perform a write to the device.
The default implementation returns -ENOSYS.
- Parameters
-
filep | Pointer to the NuttX file structure. |
buffer | Pointer to the buffer from which data should be read. |
buflen | The number of bytes to be written. |
- Returns
- The number of bytes written or -errno otherwise.
Reimplemented from cdev::CDev.
Definition at line 59 of file vfile.cpp.
References cdev::CDev::poll_notify().
The documentation for this class was generated from the following files: