From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 20 05:07:36 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 A90E116A4CE for ; Wed, 20 Apr 2005 05:07:36 +0000 (GMT) Received: from smtp3.hushmail.com (smtp3.hushmail.com [65.39.178.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 761B743D53 for ; Wed, 20 Apr 2005 05:07:36 +0000 (GMT) (envelope-from james@divide.org) Received: from smtp3.hushmail.com (localhost.hushmail.com [127.0.0.1]) by smtp3.hushmail.com (Postfix) with SMTP id EA1C9A3380 for ; Tue, 19 Apr 2005 22:07:35 -0700 (PDT) Received: from mailserver1.hushmail.com (mailserver1host.hushmail.com [65.39.178.45]) by smtp3.hushmail.com (Postfix) with ESMTP for ; Tue, 19 Apr 2005 22:07:35 -0700 (PDT) Received: (from nobody@localhost) by mailserver1.hushmail.com (8.12.8p1/8.12.8/Submit) id j3K57ZZV033777 for freebsd-hackers@freebsd.org; Tue, 19 Apr 2005 22:07:35 -0700 (PDT) Message-Id: <200504200507.j3K57ZZV033777@mailserver1.hushmail.com> Date: Tue, 19 Apr 2005 22:07:31 -0700 To: freebsd-hackers@freebsd.org Cc: From: "James Thomason" Subject: Re: linux call_usermodehelper equivalent in freebsd? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: james@divide.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 05:07:37 -0000 >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