Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2006 13:45:47 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        mykola.stryebkov@gmail.com
Cc:        hackers@FreeBSD.ORG, corecode@fs.ei.tum.de
Subject:   Re: fork inside ip_input
Message-ID:  <20060715.134547.1159135432.imp@bsdimp.com>
In-Reply-To: <20060714143514.GA2838@taran.infoua.com.ua>
References:  <20060714134953.GA2404@taran.infoua.com.ua> <44B7A2C8.7050407@fs.ei.tum.de> <20060714143514.GA2838@taran.infoua.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20060714143514.GA2838@taran.infoua.com.ua>
            mykola.stryebkov@gmail.com 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...

warner



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