Google
  Web www.spinics.net

Re: driver -> user space async communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, May 08, 2008 at 05:42:39PM +0200, Victor Librado wrote:
> I have two drivers, gpio and rf. They both communicate with user space 
> aynchronously. Here is the code. The problem is that setting at same 
> time both gpio_in_init and rf_init causes that only the last sighandler 
> is called.

Which is as expected because that's how signal handlers are supposed to
work.

> How can I solve this and have both sighandlers called when a SIGIO event 
> is signalled by the respective driver?

The usual way is to check in your signal handler what file descriptor
needs attention (see select(2) and poll(2)) and call the correct
function to handle that file descriptor.


Erik

-- 
Erik Mouw -- mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Site Home]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux ARM Kernel]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Powered by Linux

Google PageRank Checking tool