MOS Source Code
Loading...
Searching...
No Matches
io_op_t Struct Reference

#include <io.h>

Public Attributes

size_t(* read )(io_t *io, void *buf, size_t count)
 
size_t(* write )(io_t *io, const void *buf, size_t count)
 
void(* close )(io_t *io)
 
off_t(* seek )(io_t *io, off_t offset, io_seek_whence_t whence)
 
bool(* mmap )(io_t *io, vmap_t *vmap, off_t offset)
 
bool(* munmap )(io_t *io, vmap_t *vmap, bool *unmapped)
 
void(* get_name )(const io_t *io, char *buf, size_t size)
 

Detailed Description

Definition at line 34 of file io.h.

Member Data Documentation

◆ read

size_t(* read) (io_t *io, void *buf, size_t count)

Definition at line 36 of file io.h.

Referenced by io_init(), and io_read().

◆ write

size_t(* write) (io_t *io, const void *buf, size_t count)

Definition at line 37 of file io.h.

Referenced by io_init(), and io_write().

◆ close

void(* close) (io_t *io)

Definition at line 38 of file io.h.

Referenced by io_unref().

◆ seek

off_t(* seek) (io_t *io, off_t offset, io_seek_whence_t whence)

Definition at line 39 of file io.h.

Referenced by io_init(), and io_seek().

◆ mmap

bool(* mmap) (io_t *io, vmap_t *vmap, off_t offset)

Definition at line 40 of file io.h.

Referenced by io_mmap().

◆ munmap

bool(* munmap) (io_t *io, vmap_t *vmap, bool *unmapped)

Definition at line 41 of file io.h.

Referenced by io_munmap().

◆ get_name

void(* get_name) (const io_t *io, char *buf, size_t size)

Definition at line 42 of file io.h.

Referenced by io_get_name().


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