c - How to transmit data from an interrupt handler to an user application? -


a device produces interrupt managed handler in kernel. need send message flag, user application receives notification of interruption has occurred, , can perform procedure. example, wake process. how do this?

imho posix style solution write device driver receives interrupts in kernel. user space program open device file , icoctl() or read() it, blocking until @ least 1 event had arrived. suggest, user space program should read bit more:

  • how many events have arrived far?)
  • has call blocked (e.g. there no events queued when reading device)

this you, see when program misisng events (e.g. because has ben deleayed in previous cycle).


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -