From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 09:40:00 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 52E5710656B6 for ; Tue, 4 Aug 2009 09:40:00 +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 CA8408FC20 for ; Tue, 4 Aug 2009 09:39:59 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by bwz2 with SMTP id 2so2810387bwz.43 for ; Tue, 04 Aug 2009 02:39:58 -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=/X3ZHBOgVRUrjF86nrqyXVa8/k6XZoiihF0n8TtaMgQ=; b=sugD2vpiuFFXZgm3a+I8N5oDvu0ItuGEtiYUEMjqV0c9HJJcdqgsj5SKEZOQbppAym kVqlNObxQPoNvPzFeB0kpWjDweLDvIz8cq8Mdq2GD8EzDd/4F4CI/Q1naEWZlPGEWhrn xBjBN9S4m1lgw8nCxdgJWq2ZIpI45XJo/uuM0= 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=cM9BwSF7U8wLhJKml7BUewQ/3E2MIeZCSHkSsL1TktIf5QUvhLPqG77OHh5tdSANr5 bgpJ/njUf1EPa4zWqG8RU9+3IA/E4dPf0tdEhtXKRZU4bAYiIZq6BqPfs8ZY6T1mRa+3 RhKIvEUvjPQ2lqgLRKL8dBlZ/e/7pJbtEPerk= MIME-Version: 1.0 Received: by 10.204.66.17 with SMTP id l17mr2187028bki.51.1249378798721; Tue, 04 Aug 2009 02:39:58 -0700 (PDT) In-Reply-To: <20090804093036.GN1292@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> Date: Tue, 4 Aug 2009 09:39:58 +0000 Message-ID: <319cceca0908040239k2accd7fen402db4c91687a267@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:40:02 -0000 I'm getting crazy, I don't know why kern_open() works in the module's main thread, but when I use it in another thread created by kthread_create() it crashes the kernel ??? On Tue, Aug 4, 2009 at 9:30 AM, Ed Schouten wrote: > Hi, > > * Maslan wrote: >> man kthread says: >> The kthread_create() function is used to create a kernel thread. The new >> thread shares its address space with process 0, the swapper process, and > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> runs in kernel mode only. >> >> However, when i checked the pid & tid of the new created thread it was >> not the same as the parent nor as the proc0 & thread0 > > I am not sure, but sharing another process's address space doesn't have > to imply it shares the same pid, right? > > -- > Ed Schouten > WWW: http://80386.nl/ >