From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 23 15:34:39 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 C4CE116A4CE for ; Thu, 23 Sep 2004 15:34:39 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DCC943D39 for ; Thu, 23 Sep 2004 15:34:39 +0000 (GMT) (envelope-from mwm-dated-1096816702.d01adc@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 82645149E3D for ; Thu, 23 Sep 2004 08:34:39 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id i8NFIOxQ026561 for ; Thu, 23 Sep 2004 08:18:25 -0700 (PDT) (envelope-from mwm-dated-1096816702.d01adc@mired.org) Received: (qmail 91435 invoked by uid 100); 23 Sep 2004 15:18:23 -0000 Received: by guru.mired.org (tmda-sendmail, from uid 100); Thu, 23 Sep 2004 10:18:22 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16722.59709.451226.932084@guru.mired.org> Date: Thu, 23 Sep 2004 10:18:21 -0500 To: "Gordon David" In-Reply-To: References: X-Mailer: VM 7.17 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer X-Mailman-Approved-At: Fri, 24 Sep 2004 12:15:34 +0000 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 15:34:39 -0000 In , Gordon David typed: > > >From: "Bjoern A. Zeeb" > >To: Gordon David > >CC: freebsd-hackers@freebsd.org > >Subject: Re: execute a user process in the kernel > >Date: Thu, 23 Sep 2004 08:02:18 +0000 (UTC) > > > >On Thu, 23 Sep 2004, Gordon David wrote: > > > > > That's the point. I do not want the userland program to check > /dev/fooctl > > > from time to time. I want the kernel to notify the userland program > > > instead. So how shall I do it? Maybe linker_load_file is a better way. > > > >man 2 kqueue ? > Kqueue is a good method to notify the user. But I want the code in the > kernel directly calls a user program. How about starting with the code in kern/kern_exec.c? http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.