From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 14 13:50:06 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 B999316A4ED for ; Fri, 14 Jul 2006 13:50:06 +0000 (UTC) (envelope-from mykola.stryebkov@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA82743D76 for ; Fri, 14 Jul 2006 13:50:00 +0000 (GMT) (envelope-from mykola.stryebkov@gmail.com) Received: by wx-out-0102.google.com with SMTP id s13so263656wxc for ; Fri, 14 Jul 2006 06:50:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent; b=OLzlSClfJb6vSBkdJ8FKnOqMmFsJDKyj1CCQcmL9UqQNqtWsJn07qKOOlyWQ9yJsdGbhwPuMf3zpkkA58j0Sxy8P2x/6IsDpKMcBBRm6MuhzLG7HMsNUMiOmxiUkcTln1OkwcU3/OOBVfMd4M+8qMdD0U/layTEQQb7GFQdVwqo= Received: by 10.70.8.4 with SMTP id 4mr3138128wxh; Fri, 14 Jul 2006 06:49:59 -0700 (PDT) Received: from localhost ( [70.86.106.246]) by mx.gmail.com with ESMTP id h37sm3584388wxd.2006.07.14.06.49.57; Fri, 14 Jul 2006 06:49:58 -0700 (PDT) Date: Fri, 14 Jul 2006 16:49:53 +0300 From: Mykola Stryebkov To: hackers@freebsd.org Message-ID: <20060714134953.GA2404@taran.infoua.com.ua> Mail-Followup-To: Mykola Stryebkov , hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: 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:50:06 -0000 Hi all. Have a strange question: is it possible to create new process (using fork or fork1) from inside of ip_input()? 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. -- Nick Strebkov Public key: http://humgat.org/~nick/pubkey.txt fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6