LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 08-05-2009, 11:05 PM   #1
rkemiset
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
creating processes in kernel mode using modules at runtime.


Hi All,

As per my understanding to create a process/thread we can use fork()/do_fork()/clone(), based on the flags provided to these funcitons the child process can access the parent resources.
usually to create a thread we use CLONE_KERNEL as flags, where child process can use parent file descriptors, files, memory mapping etc...

1) what are the flags we need, if we want to create a new process which is independent of parent process?
Is there any limitation in creating number of processes in kernel mode?

2) In case if a module consists of two functions which are written in such a way that those are using global variables and if we want to generate two independent processes from these functions, what is the expected behavior?

a) How about address space of these two processes?
b) In run time whether changes to global variables in one process will be reflected in other process?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help creating a Loadable Kernel Modules jacatone Linux - Newbie 12 05-08-2008 06:23 PM
Creating 2.6 Kernel modules for McAfee LinuxShield 1.2 NOliveira Linux - General 1 07-14-2006 05:34 AM
creating downloadable kernel modules dubcat Debian 2 03-29-2006 10:28 AM
Mapping between processes and modules rahul_kulkarni Linux - General 2 01-11-2006 01:47 PM
Creating Linux Processes using C indika7777 Programming 3 03-25-2004 12:27 AM


All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration