Poster of Linux kernelThe best gift for a Linux geek
COMEDI_LOCK

COMEDI_LOCK

Section: (3) Updated: 28 October 2007
Local index Up

 

NAME

comedi_lock - subdevice reservation  

SYNOPSIS

#include <comedilib.h>

int comedi_lock (comedi_t * device, unsigned int subdevice);  

DESCRIPTION

The function comedi_lock() reserves a subdevice for use by the current process. While the lock is held, no other process is allowed to read, write, or configure that subdevice, although other processes can read information about the subdevice. The lock is released when comedi_unlock() is called, or the device is closed.  

RETURN VALUE

If sucessful, 0 is returned. If there is an error, -1 is returned.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 21:43:40 GMT, April 16, 2011