Документ взят из кэша поисковой машины. Адрес оригинального документа : http://jet.sao.ru/hq/sts/linux/comedi/doc/func-ref-comedi-lock.html
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 09:25:19 2012
Кодировка:

Поисковые слова: р р с
comedi_lock

comedi_lock

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. If sucessful, 0 is returned. If there is an error, -1 is returned.