kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Information about interrupt in userpace
@ 2024-01-05  9:28 Patryk
  0 siblings, 0 replies; only message in thread
From: Patryk @ 2024-01-05  9:28 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 581 bytes --]

Hi, I have a device that is connected through the SPI to my CPU.
Additionally, the device exposes an interrupt pin which I can also connect
to my processor.
The interrupt is triggered each time the device has some data available.
This information should be propagated up to the userspace process which
uses my driver to communicate with the device. How should I implement this?
Should I e.g. implement a poll function in the driver which will be called
from the userspace process and which will inform about triggered interrupt?
What are the other ways to deal with it?

BR
Patryk

[-- Attachment #1.2: Type: text/html, Size: 732 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-05  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05  9:28 Information about interrupt in userpace Patryk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).