fork inside ip_input

M. Warner Losh imp at
Sat Jul 15 19:47:38 UTC 2006

In message: <20060714143514.GA2838 at>
            mykola.stryebkov at writes:
: On 14.07.2006 15:57:28, Simon 'corecode' Schubert wrote:
: > 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()?
: > 
: > 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 
: > process context. which process do you want to fork anyways?
: I want to start user-level process on first incoming RTP packet to
: install and keep TCP control connection.

Why not start it at boot, and signal/kick it somehow when RTP
connections need to be managed...


More information about the freebsd-hackers mailing list