public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* upcalls from kernel code to user space daemons
@ 2004-06-14 18:07 Steve French
  2004-06-14 18:30 ` Chris Friesen
  2004-06-18 23:08 ` H. Peter Anvin
  0 siblings, 2 replies; 11+ messages in thread
From: Steve French @ 2004-06-14 18:07 UTC (permalink / raw)
  To: linux-kernel

Is there a good terse example of an upcall from a kernel module (such as
filesystem) to an optional user space helper daemon?   The NFS RPC
example seems more complicated than what I would like as does the
captive ioctl approach which I see in a few places.

I simply need to poke a userspace daemon (e.g. launched by mount) to do
in userspace these two optional functions which are not available in
kernel and pass a small (under 64K) amount of data back to the kernel
module:
1) getHostByName:  when the kernel cifs code detects a server crashes
and fails reconnecting the socket and the kernel code wants to see if
the hostname now has a new ip address.
2) package a kerberos ticket ala RFC2478 (SPNEGO)

And an only very loosely related question - 
The proc interface for returning debug information or stats is somewhat
awkward to use for returned data greater than about 1K - I had trouble
finding a good example of kernel code using /proc to return debug data
larger than that since it involves repeated calls into the pseudofile's
proc read function with careful setting of some offset/lengths which can
be hard when iterating through dynamically generated variable length
debug information.  Is there a good example of that?




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

end of thread, other threads:[~2004-06-18 23:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 18:07 upcalls from kernel code to user space daemons Steve French
2004-06-14 18:30 ` Chris Friesen
2004-06-14 21:40   ` Oliver Neukum
2004-06-14 21:57     ` Chris Friesen
2004-06-14 22:08       ` Bernd Petrovitsch
2004-06-14 22:22         ` Chris Friesen
2004-06-14 22:54           ` Tim Hockin
2004-06-14 23:10             ` Randy.Dunlap
2004-06-14 22:54     ` Steve French
2004-06-15  9:06       ` Oliver Neukum
2004-06-18 23:08 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox