Re: Support for embedded cpu's

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

 



On Fri, May 02, 2003 at 02:38:44PM +0100, James Stevenson wrote:
> Hi
> 
> i have a PCI card with several embedded cpu's on it which can generate irq's
> to the host across the pci interface. I would like these to be used from a
> programming executing on the host.
> 
> What is the best way todo this ?
> 
> The only thing i have though about is so use signals but what would
> be a good signal to use to so support functionality like that ?

Signals are slow, pushing info to process using signals is not extremely
nice and neither is writing signal handling in user-land.

I would suggest you make a device and implement poll and/or sending
notification signal (set by F_SETSIG fcntl). Thus you could either have
a thread waiting in poll for an interrupt or handling it in signal
handler it chooses.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux