Forking in kernel

Forking in kernel

am 22.11.2004 08:23:49 von Jagadeesh Bhaskar P

Hi,

How can I fork a new process at the kernel level, say, as in a module?
When compiling a module with a fork() function inside it,
it will get complied as gcc -o ... -c ... -D__KERNEL__

But it says unresolved symbol fork() during insmod-ing. Is there a
kernel level compliment for fork and clone, like printk for printf??


Please do help!!

--
With regards,

Jagadeesh Bhaskar P

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Forking in kernel

am 22.11.2004 09:27:19 von Jagadeesh Bhaskar P

I read that the init process is the first actual process to run, and it
spawns all other processes even including the shell. So I wanted to
explore the same aspect, and study what happens in such a case, like,
zombie process and all!!

So is that possible to be done
On Mon, 2004-11-22 at 13:48, Manish Regmi wrote:
> On Mon, 22 Nov 2004 12:53:49 +0530, Jagadeesh Bhaskar P
> wrote:
> > Hi,
> >
> > How can I fork a new process at the kernel level, say, as in a module?
>
> why would you want that????????????????????????????????????
>

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Forking in kernel

am 22.11.2004 10:15:56 von manish regmi

On Mon, 22 Nov 2004 14:30:46 +0530, Jagadeesh Bhaskar P
wrote:
> > BTW:
> > Linux Kernel is better discussed in kernelnewbies site.
> > www.kernelnewbies.org
>
> I had seen this site. But didnt get which address to subscribe for and
> which to post the queries. Can u help me on that issue?
>
> --
> With regards,
>
> Jagadeesh Bhaskar P
> R&D Engineer
> HCL Infosystems Ltd
> Pondicherry
> INDIA
>
>
See this page.

http://mail.nl.linux.org/kernelnewbies/2004-11/msg00285.html

see line,
List-subscribe:

regards manish


--
Manish Regmi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs