linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* fasync (Async Notification)
@ 2009-03-09  6:33 Vijay Nikam
  0 siblings, 0 replies; only message in thread
From: Vijay Nikam @ 2009-03-09  6:33 UTC (permalink / raw)
  To: linuxppc-dev

Hello All,

I have mpc8313erdb eval board and kernel 2..6.20 on it. I have written
GPIO driver and have enabled Async Notification (SIGIO)

In the driver I am generating interrupt whenever the status of GPIO
pin (GPIO 2) changes, this part is working correct (as soon as the
GPIO pin status changes the interrupt is generated).

Then I included Async Notification to notify the particluar user space
process (to the process which I want to) by using fasync method,
kill_fasync is called in Interrupt handler and also the kill_fasync
signals the particular process and the Signal handler executes and
says SIGIO is received.

But the problem is, if I change GPIO pin status twice then two
interrupts are generated but I get SIGIO Async Notification only once.
Whereras I am expecting that I should get twice SIGIO Async
Notification (Theory says the same).

Could anyone please let me what is the reason for this ? ? ?

Kindly please acknowledge ... thank you ...

Kind Regards,
Vijay Nikam

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

only message in thread, other threads:[~2009-03-09  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09  6:33 fasync (Async Notification) Vijay Nikam

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).