Re: linux call_usermodehelper equivalent in freebsd?
Is there an equivalent in FreeBSD to the Linux kernel function 'call_usermodehelper' which wraps execve to do as its name suggests, call a user mode helper program? Andrew, It depends on what your user mode helper program is intended to do, but the traditional approach is to create a user mode program that blocks on a custom system call waiting for an event. See the following 2001 freebsd-hackers thread from Terry Lambert, titled Invoking a userland function from kernel for further details and design considerations: http://docs.freebsd.org/cgi/mid.cgi?3B646AAB.688669C5 Regards, James ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
linux call_usermodehelper equivalent in freebsd?
I tried asking about this on freebsd-questions, but I didn't get a response and I gather this is a more appropriate forum. This is a question about FreeBSD kernel (module) programming. Is there an equivalent in FreeBSD to the Linux kernel function 'call_usermodehelper' which wraps execve to do as its name suggests, call a user mode helper program? If there is, what is it? If not, can some kind person please point me to some code in the kernel--if there is any--which does something similar (i.e., exec's a usermode program from the kernel), so I may see how it's properly done? In what context is it ok just to do the exec? How do I set it up? Thanks, Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linux call_usermodehelper equivalent in freebsd?
On Sun, Apr 17, 2005 at 12:34:40PM +0100, Andrew Tappert wrote: Is there an equivalent in FreeBSD to the Linux kernel function 'call_usermodehelper' which wraps execve to do as its name suggests, call a user mode helper program? BSD kernels normally don't try to execute helper programs. Setting up a process from scratch is not trivial work. Can you give us for information on what you want to do? Maybe there is a better solution available. Joerg If there is, what is it? If not, can some kind person please point me to some code in the kernel--if there is any--which does something similar (i.e., exec's a usermode program from the kernel), so I may see how it's properly done? In what context is it ok just to do the exec? How do I set it up? Thanks, Andrew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]