mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 23:50:35 +08:00
Add FIONWRITE to allow applications to sniff the amount of writable space on a descriptor. Implement this for serial devices only.
This commit is contained in:
@@ -110,6 +110,10 @@
|
||||
* OUT: Bytes readable from this fd
|
||||
*/
|
||||
|
||||
#define FIONWRITE _FIOC(0x0005) /* IN: Location to return value (int *)
|
||||
* OUT: Bytes writable to this fd
|
||||
*/
|
||||
|
||||
/* NuttX file system ioctl definitions **************************************/
|
||||
|
||||
#define _DIOCVALID(c) (_IOC_TYPE(c)==_DIOCBASE)
|
||||
|
||||
Reference in New Issue
Block a user