From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 14 13:57:46 2006 Return-Path: X-Original-To: hackers@freebsd.org 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 449BC16A4FD for ; Fri, 14 Jul 2006 13:57:46 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [129.187.54.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD13C43DA7 for ; Fri, 14 Jul 2006 13:57:34 +0000 (GMT) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id D6E3E8D449; Fri, 14 Jul 2006 15:57:32 +0200 (CEST) Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11295-05-5; Fri, 14 Jul 2006 15:57:32 +0200 (CEST) Received: from [84.155.243.109] (p549BF36D.dip.t-dialin.net [84.155.243.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 549F48C311; Fri, 14 Jul 2006 15:57:32 +0200 (CEST) Message-ID: <44B7A2C8.7050407@fs.ei.tum.de> Date: Fri, 14 Jul 2006 15:57:28 +0200 From: Simon 'corecode' Schubert User-Agent: Mail/News 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: Mykola Stryebkov , hackers@freebsd.org References: <20060714134953.GA2404@taran.infoua.com.ua> In-Reply-To: <20060714134953.GA2404@taran.infoua.com.ua> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig915844A8B1C460A79C610A45" X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Cc: Subject: Re: fork inside ip_input 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: Fri, 14 Jul 2006 13:57:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig915844A8B1C460A79C610A45 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Mykola Stryebkov wrote: > Hi all. >=20 > Have a strange question: is it possible to create new process (using > fork or fork1) from inside of ip_input()? i don't think so. > In kernel sources i found example of using fork1 in init_main.c but > looking into ip_input.c i do not understand where i can get pointers to= > a thread and parent process to pass it into fork1. only a process can fork, but ip_input is run from interrupt, not in a pro= cess context. which process do you want to fork anyways? cheers simon --=20 Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1 +++= Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ --------------enig915844A8B1C460A79C610A45 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (DragonFly) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEt6LKr5S+dk6z85oRAqb4AKDGfxjm+5LxNtNsrCdVce0bcHB7eQCdGx6J UPjQF+Pvw2SedW0MKKgr0hw= =GHI5 -----END PGP SIGNATURE----- --------------enig915844A8B1C460A79C610A45--