linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Notifying a user space application
@ 2004-06-30 22:29 Christian Tröster
  2004-07-01  6:20 ` Stefan Nickl
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Tröster @ 2004-06-30 22:29 UTC (permalink / raw)
  To: linuxppc-embedded



Hi!

I'd like to notify a user space application if an interrupt occurs. I had no
problems to install a custom signal handler but I am not sure what's the best
way to notify the application.

My first idea was to send a signal to the application. But as far as I know
one has to know the pid to send the signal. So I'd need some mechanism to get
this pid - perhaps via a /proc entry. Is this a clean solution?

Another idea was to create a (blocking) character device and have the
application listening on that using select() or something like that. But this
seems to be a little bit bloated just for one signal. :)

Are there any other better ways I am not yet aware of. What do you think?

Bye, Christian

- --
| Mail: c dot troester at gmx dot de | PGP-Id: FA006C74 |

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

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

end of thread, other threads:[~2004-07-01 12:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30 22:29 Notifying a user space application Christian Tröster
2004-07-01  6:20 ` Stefan Nickl
2004-07-01 12:33   ` Christian Tröster

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