From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 17 11:34:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7DD16A4CE for ; Sun, 17 Apr 2005 11:34:57 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6065343D39 for ; Sun, 17 Apr 2005 11:34:56 +0000 (GMT) (envelope-from andrew@binturong.us) Received: (qmail 11982 invoked from network); 17 Apr 2005 11:34:55 -0000 Received: from unknown (HELO ?83.245.20.197?) (unknown) by unknown with SMTP; 17 Apr 2005 11:34:55 -0000 X-pair-Authenticated: 83.245.20.197 Message-ID: <426249D0.6010504@binturong.us> Date: Sun, 17 Apr 2005 12:34:40 +0100 From: Andrew Tappert User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 17 Apr 2005 12:11:05 +0000 Subject: linux call_usermodehelper equivalent in freebsd? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2005 11:34:57 -0000 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