#include <comedilib.h>
int comedi_unlock(comedi_t * device, unsigned int subdevice);
int comedi_unlock
The function comedi_unlock() released a subdevice lock acquired by comedi_lock(). If sucessful, 0 is returned, otherwise -1.