linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* inter-driver communication
@ 2002-07-17 21:27 Khai Trinh
  2002-07-18 23:35 ` Neil Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Khai Trinh @ 2002-07-17 21:27 UTC (permalink / raw)
  To: linuxppc-embedded


Hi folks,

Are there ways in the linux kernel that allows
driver-driver communications (ie: one driver
interrupts another driver in an embedded application)?

I have a driver that handles one device. When it is
interrupted, I would like then to interrupt the other
driver to handle the interrupt request?

Any suggestion is welcome and appreciated.

Thanks,
--Khai

Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: inter-driver communication
  2002-07-17 21:27 inter-driver communication Khai Trinh
@ 2002-07-18 23:35 ` Neil Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Horman @ 2002-07-18 23:35 UTC (permalink / raw)
  To: Khai Trinh; +Cc: linuxppc-embedded


I'm not sure if an interrupt is exactly what you want here.  If you want to
facilitate communication between drivers I think that tasklets do the job fairly
well.  All you really need to do is have the destination driver export a
tasklet_struct that the source driver can reference as an external variable.
Then if you want the source driver to signal the destination driver to do
something, all it needs to do is call schedule_tasklet on the exported structure.
Hope that helps
Neil

Khai Trinh wrote:

> Hi folks,
>
> Are there ways in the linux kernel that allows
> driver-driver communications (ie: one driver
> interrupts another driver in an embedded application)?
>
> I have a driver that handles one device. When it is
> interrupted, I would like then to interrupt the other
> driver to handle the interrupt request?
>
> Any suggestion is welcome and appreciated.
>
> Thanks,
> --Khai
>
>
>


--
/******************************************************************
*Neil Horman
*Software Engineer
*LVL7 Systems
*13000 Weston Pkwy.
*Cary, NC 27513
*(919)-865-2915
*nhorman@lvl7.com
*PGP keyID 0xB5E1020A
*http://www.keyserver.net/en
*******************************************************************/


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-18 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-17 21:27 inter-driver communication Khai Trinh
2002-07-18 23:35 ` Neil Horman

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