fork inside ip_input
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Fri Jul 14 13:57:46 UTC 2006
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?
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060714/bacafc41/signature.pgp
More information about the freebsd-hackers
mailing list