From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 09:30:37 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 444B31065678 for ; Tue, 4 Aug 2009 09:30:37 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 09DB98FC19 for ; Tue, 4 Aug 2009 09:30:37 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 72F841CEB9; Tue, 4 Aug 2009 11:30:36 +0200 (CEST) Date: Tue, 4 Aug 2009 11:30:36 +0200 From: Ed Schouten To: Maslan Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JlQgkxKsF3TswZob" Content-Disposition: inline In-Reply-To: <319cceca0908040227hf9a0f92jbf05b11e9f974994@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Max Laier , 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:30:37 -0000 --JlQgkxKsF3TswZob Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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? --=20 Ed Schouten WWW: http://80386.nl/ --JlQgkxKsF3TswZob Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkp3/7wACgkQ52SDGA2eCwVvIACcCrlRhfMPbKzfx33X0h2iTwae 4yIAnjpQwlkGJ6fz2ttXWgWcBbI2qlPy =Ypn2 -----END PGP SIGNATURE----- --JlQgkxKsF3TswZob--