Re: Calling userspace function from inside kernel (still) possible?

Helge Hafting (helge.hafting@c2i.net)
Tue, 23 Feb 1999 12:50:42 +0100


> I am wondering whether it is possible to call a userspace routine from
> within the kernel, say a module or something.
> The Linux Kernel Hacker Guide states as one solution to call kerneld from
> kernel mode and have it execute a seperate program.
> Since kerneld had been replaced with kmod, and the kmod documentation
> states it can only be used to load modules on demand this solution clearly
> is not an option anymore.

If you want to run userspace programs using module trickery, try
finding some docs on the module system and /etc/modules.conf
My /etc/conf.modules has this:
post-install sb /sbin/modprobe "-k" "adlib_card"
meaning the userspace program "modprobe" will run whenever
the sb module is loaded. Maybe you can use this.

Helge Hafting

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/