lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <314029050.47161.1535463191699.JavaMail.zimbra@cos.flag.org>
Date:   Tue, 28 Aug 2018 09:33:11 -0400 (EDT)
From:   dimitry@....flag.org
To:     linux-kernel <linux-kernel@...r.kernel.org>
Cc:     dimitry <dimitry@....flag.org>
Subject: gpiolib: GPIO_GET_LINEHANDLE_IOCTL and GPIO_GET_LINEEVENT_IOCTL at
 the same time

It seems gpiolib only allows user to request either the line handle descriptor or the line event descriptor, but not both at the same time. 

gpiohandle_request hr; 
gpioevent_request er; 
... 
ioctl(fd, GPIO_GET_LINEHANDLE_IOCTL, &hr); // so far so good 
ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, &er); // resource busy 

I have a situation where I am trying to have 1 thread monitor an open drain/source line for events, while another thread writes to it. Not entirely unlike i2c pulse stretching. Is this not possible with the current gpiolib design? Or am I doing something wrong? If not possible, is my only choice to run an endless loop checking for line state? 

NB: I am not subscribed to the list. Please CC me directly in your replies. 

Thank you, 
Dimitry 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ