|
virtual int | init () |
|
virtual int | ioctl (cdev::file_t *filp, int cmd, unsigned long arg) |
| Perform an ioctl operation on the device. More...
|
|
virtual int | init () |
|
virtual int | devIOCTL (unsigned long cmd, unsigned long arg) |
|
§ ioctl()
int LED::ioctl |
( |
cdev::file_t * |
filep, |
|
|
int |
cmd, |
|
|
unsigned long |
arg |
|
) |
| |
|
virtual |
Perform an ioctl operation on the device.
The default implementation handles DIOC_GETPRIV, and otherwise returns -ENOTTY. Subclasses should call the default implementation for any command they do not handle themselves.
- Parameters
-
filep | Pointer to the NuttX file structure. |
cmd | The ioctl command value. |
arg | The ioctl argument value. |
- Returns
- OK on success, or -errno otherwise.
Reimplemented from cdev::CDev.
The documentation for this class was generated from the following file:
- src/lib/drivers/led/led.cpp