Moep Library
2.0-nc
|
moep device operations More...
#include <module.h>
Data Fields | |
int(* | close )(int fd, void *priv) |
close a device More... | |
moep device operations
The struct moep_dev_ops defines the operations needed to handle the device defined by a module.
int(* moep_dev_ops::close)(int fd, void *priv) |
close a device
The function close() should close the device and release all associated ressources.
fd | the file descriptor passed to moep_dev_open() |
priv | the private data passed to moep_dev_open() |
0 | on success |
-1 | on error, errno should be set appropriately. |