Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fd_op_vtable Struct Reference

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) 
 
};  
 
int(* close )(void *obj)
 
int(* ioctl )(void *obj, unsigned int request, va_list args)
 

Detailed Description

File descriptor virtual method table.

Currently all operations beyond read/write/close go thru ioctl method.

Field Documentation

◆ [union]

union { ... } fd_op_vtable

◆ [union]

union { ... } fd_op_vtable

◆ close

int(* fd_op_vtable::close) (void *obj)

◆ ioctl

int(* fd_op_vtable::ioctl) (void *obj, unsigned int request, va_list args)

◆ read

ssize_t(* fd_op_vtable::read) (void *obj, void *buf, size_t sz)

◆ read_offs

ssize_t(* fd_op_vtable::read_offs) (void *obj, void *buf, size_t sz, size_t offset)

◆ write

ssize_t(* fd_op_vtable::write) (void *obj, const void *buf, size_t sz)

◆ write_offs

ssize_t(* fd_op_vtable::write_offs) (void *obj, const void *buf, size_t sz, size_t offset)

The documentation for this struct was generated from the following file: