Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
File descriptor virtual method table. More...
#include <fdtable.h>
Data Fields | ||
union { | ||
ssize_t(* read )(void *obj, void *buf, size_t sz) | ||
ssize_t(* read_offs )(void *obj, void *buf, size_t sz, size_t offset) | ||
}; | ||
union { | ||
ssize_t(* write )(void *obj, const void *buf, size_t sz) | ||
ssize_t(* write_offs )(void *obj, const void *buf, size_t sz, size_t offset) | ||
}; | ||
union { | ||
int(* close )(void *obj) | ||
int(* close2 )(void *obj, int fd) | ||
}; | ||
int(* | ioctl )(void *obj, unsigned int request, va_list args) | |
File descriptor virtual method table.
Currently all operations beyond read/write/close go thru ioctl method.
union { ... } fd_op_vtable |
union { ... } fd_op_vtable |
union { ... } fd_op_vtable |
int(* fd_op_vtable::close) (void *obj) |
int(* fd_op_vtable::close2) (void *obj, int fd) |
int(* fd_op_vtable::ioctl) (void *obj, unsigned int request, va_list args) |