Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2006 06:56:11 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Mykola Stryebkov <mykola.stryebkov@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: fork inside ip_input
Message-ID:  <44B7A27B.4040301@elischer.org>
In-Reply-To: <20060714134953.GA2404@taran.infoua.com.ua>
References:  <20060714134953.GA2404@taran.infoua.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Mykola Stryebkov wrote:

>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.
>
>  
>


you want to create a new kernel thread..

look at kthread_{xxx}
use curthread as your thread.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44B7A27B.4040301>