lkml.org 
[lkml]   [1999]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Calling userspace function from inside kernel (still) possible?
Date
From

> 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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.049 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site