From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 09:59:03 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA1A9106566C for ; Tue, 4 Aug 2009 09:59:03 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 4C1448FC14 for ; Tue, 4 Aug 2009 09:59:02 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by bwz2 with SMTP id 2so2818106bwz.43 for ; Tue, 04 Aug 2009 02:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=//HyqItquI0Vs1Kmws74AqHqoZ6xHPJkewtDtZlN7XU=; b=A06juPz4V5ydzgqZR/30g4FJ6uf15HkFg0Lf1/X/Cv2fk4lmYZU6SmS2vgf0aGcRCw B2wKZoMsvTwWZkUFGb/FyXnVpkEETEFYvaaidDBBdbNSkSNGoEX6D9UyL0F8ld7YmAjH yB424+RhTFU8ieGeF8KDP8MN2I/UlFGs4mB9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=bapbEsQsyinxfjcCjVqH5tyFza3ZY59s3TNY8yRhwnOtu1GUtxpnRq2/GMJVhmroqi y+D+zpTb52LSTDRtaM/DgaHsGJbslyXyPtHrfkd5NWn73nTiPUDyylFohBNV+N6wV16w N/pd2Ew02PGg4HUFVQl9rn5VLC22Wg3GMjL6o= MIME-Version: 1.0 Received: by 10.204.54.4 with SMTP id o4mr10352342bkg.208.1249379941938; Tue, 04 Aug 2009 02:59:01 -0700 (PDT) In-Reply-To: <20090804095650.GP1292@hoeg.nl> References: <319cceca0908030119i3432a495ya60aa431dab0e1b1@mail.gmail.com> <86k51k4kvl.fsf@ds4.des.no> <86fxc84ksj.fsf@ds4.des.no> <200908040138.14743.max@love2party.net> <319cceca0908040227hf9a0f92jbf05b11e9f974994@mail.gmail.com> <20090804093036.GN1292@hoeg.nl> <319cceca0908040239k2accd7fen402db4c91687a267@mail.gmail.com> <20090804094142.GO1292@hoeg.nl> <319cceca0908040252w105d3dfdge9dec3c8b6d28607@mail.gmail.com> <20090804095650.GP1292@hoeg.nl> Date: Tue, 4 Aug 2009 09:59:01 +0000 Message-ID: <319cceca0908040259q4537db80uc2ce9696f30bfc12@mail.gmail.com> From: Maslan To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: sosend() and mbuf X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 09:59:04 -0000 yes kio http://people.freebsd.org/~pjd/misc/kernio/ However, It's outdated. On Tue, Aug 4, 2009 at 9:56 AM, Ed Schouten wrote: > * Maslan wrote: >> > Is it possible to call kern_open() from within a kernel thread anyway? >> I think yes, It worked on the parent thread before creating a new kthread. >> See OpenKETA source, its using the same approach. >> > kern_open() depends on a file descriptor table, right? >> Yes, it returns a fd in the curthread->td_retval[0], which i should >> use within the same thread to deal with this file. > > Didn't someone (Jeff Roberson?) develop some nice in-kernel API for > accessing files some years ago? Why not use that? > > -- > Ed Schouten > WWW: http://80386.nl/ >