Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 22:07:31 -0700
From:      "James Thomason" <james@divide.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: linux call_usermodehelper equivalent in freebsd?
Message-ID:  <200504200507.j3K57ZZV033777@mailserver1.hushmail.com>

next in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504200507.j3K57ZZV033777>