From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 09:52:53 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 0ED20106566C for ; Tue, 4 Aug 2009 09:52:53 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 93A058FC12 for ; Tue, 4 Aug 2009 09:52:52 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by fxm24 with SMTP id 24so3208946fxm.36 for ; Tue, 04 Aug 2009 02:52:51 -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=4hCc7nKltg/N6j6jJVEcwPqfJCP+42zna3k3Ene3cps=; b=knoA22za7/oJOQg3cj/WZtRzX/Sh+8Zg1kD55n7TT56P+q8SVrM+NqKa8ItaLzpgMa zmzDBEGSzpPMVcUzlscG7iHlZMAHXIJG3uGLP3xa0nEeGey4olZxCCupG0cHRF0zFJ5g KBWTQZoRZ4iQGImW4Dt33D0hA6J8Nvxt60sRQ= 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=JHUYL2egZmOhX6M+Ksqx8aOOYYOupnkvst0y/M9ACJlsqhl+XWjvwWD2zPQVp3S3fE VTy98PKBWtYmPtZIbEhxkjLgQXMZ3i+oKyhgeHeG2t5OIF6Rkyn7xSL0iWFeHVHap0Rw E8rq7DJdeFeLpGF6MabEHk8qpjstWtxh+3sGQ= MIME-Version: 1.0 Received: by 10.204.122.200 with SMTP id m8mr1096938bkr.176.1249379568716; Tue, 04 Aug 2009 02:52:48 -0700 (PDT) In-Reply-To: <20090804094142.GO1292@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> Date: Tue, 4 Aug 2009 09:52:48 +0000 Message-ID: <319cceca0908040252w105d3dfdge9dec3c8b6d28607@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:52:53 -0000 > 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.