Skip to contentSkip to conversation

Forking in kernel

DISCUSSION Jagadeesh Bhaskar P 2 participants 3 messages Nov 22, 2004 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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!!

Signature · 9 lines
With regards,

Jagadeesh Bhaskar P

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

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

Quoted 8 lines · Manish Regmi
Quoted 3 lines · Jagadeesh Bhaskar P

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1101114046.5382.39.camel@myLinux

#5 lore raw
Quoted 7 lines · Jagadeesh Bhaskar P
Quoted 3 lines

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?

Quoted 10 lines

--
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

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