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 / \
signature.asc
Description: OpenPGP digital signature