Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
moep_dev_ops Struct Reference

moep device operations More...

#include <module.h>

Data Fields

int(* close )(int fd, void *priv)
 close a device More...
 

Detailed Description

moep device operations

The struct moep_dev_ops defines the operations needed to handle the device defined by a module.

Field Documentation

int(* moep_dev_ops::close)(int fd, void *priv)

close a device

The function close() should close the device and release all associated ressources.

Parameters
fdthe file descriptor passed to moep_dev_open()
privthe private data passed to moep_dev_open()
Return values
0on success
-1on error, errno should be set appropriately.

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