Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
devops_t Struct Reference

Device operations pointer structure. More...

#include <devtab.h>

Public Attributes

int(* open )(file_t *, const char *, int, int)
 Open method.
 
int(* close )(file_t *, node_t *)
 Close method.
 
ssize_t(* read )(file_t *, void *, size_t)
 Read method.
 
ssize_t(* write )(file_t *, const void *, size_t)
 Write method.
 
int(* ioctl )(file_t *, node_t *, int, void *)
 Ioctl method.
 

Detailed Description

Device operations pointer structure.

Definition at line 50 of file devtab.h.

Member Data Documentation

◆ close

int(* devops_t::close) (file_t *, node_t *)

Close method.

Definition at line 55 of file devtab.h.

◆ ioctl

int(* devops_t::ioctl) (file_t *, node_t *, int, void *)

Ioctl method.

Definition at line 61 of file devtab.h.

◆ open

int(* devops_t::open) (file_t *, const char *, int, int)

Open method.

Definition at line 53 of file devtab.h.

◆ read

ssize_t(* devops_t::read) (file_t *, void *, size_t)

Read method.

Definition at line 57 of file devtab.h.

◆ write

ssize_t(* devops_t::write) (file_t *, const void *, size_t)

Write method.

Definition at line 59 of file devtab.h.


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