From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 23 09:37:36 2004 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 1EDE816A4CE for ; Thu, 23 Sep 2004 09:37:36 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32CB643D39 for ; Thu, 23 Sep 2004 09:37:35 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 54F896538E; Thu, 23 Sep 2004 10:37:33 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58854-02-6; Thu, 23 Sep 2004 10:37:32 +0100 (BST) Received: from empiric.dek.spc.org (adsl-64-171-185-240.dsl.snfc21.pacbell.net [64.171.185.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 6465465339; Thu, 23 Sep 2004 10:37:32 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 2531163D3; Thu, 23 Sep 2004 02:37:30 -0700 (PDT) Date: Thu, 23 Sep 2004 02:37:29 -0700 From: Bruce M Simpson To: Gordon David Message-ID: <20040923093729.GC870@empiric.icir.org> Mail-Followup-To: Gordon David , bzeeb-lists@lists.zabbadoz.net, freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: bzeeb-lists@lists.zabbadoz.net cc: freebsd-hackers@freebsd.org Subject: Re: execute a user process in the kernel 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: Thu, 23 Sep 2004 09:37:36 -0000 On Thu, Sep 23, 2004 at 08:18:14AM +0000, Gordon David wrote: > Kqueue is a good method to notify the user. But I want the code in the > kernel directly calls a user program. This is Very, Very Hard indeed, because it's not something supported by the system, but it should be possible. Look at create_init() and start_init() and see if they can be adapted to your needs. The hard part here is building the process image. Good luck. BMS