All of lore.kernel.org
 help / color / mirror / Atom feed
* architecture to implement communication between static kernel with dynamic module
@ 2005-03-03 15:09 sounak chakraborty
  2005-03-03 15:20 ` Martin Zwickel
  2005-03-03 15:30 ` linux-os
  0 siblings, 2 replies; 3+ messages in thread
From: sounak chakraborty @ 2005-03-03 15:09 UTC (permalink / raw)
  To: linux-kernel

there is one my_own module
which i will insert whenever i like through 
insmod.
thus when the module is loaded it will create a proc
file 

now i want to send the structure variable of
task_struct
i.e p to the module from the kernel at point when the
execution passes
through forking a new process i.e 
at the function do_fork() in fork.c in linux/kernel
folder

how to do this

how can i call the module from that point  (i.e in
do_fork())
and pass the task_struct *p as parameter to the module

can i declare an arbitary name in fork.c of my module
and compile the new kernel?
i think i cannot since i am inserting a dynamic module
to a static kernel executable
and how does the kernel will know that this module
will be attached later to it.
it will show errors while compiling the new modified
kernel

can you help me ?
what path i must take
thanks 
sounak 



________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: architecture to implement communication between static kernel with dynamic module
  2005-03-03 15:09 architecture to implement communication between static kernel with dynamic module sounak chakraborty
@ 2005-03-03 15:20 ` Martin Zwickel
  2005-03-03 15:30 ` linux-os
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Zwickel @ 2005-03-03 15:20 UTC (permalink / raw)
  To: sounak chakraborty; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

On Thu, 3 Mar 2005 15:09:01 +0000 (GMT)
sounak chakraborty <sounakrin@yahoo.co.in> bubbled:

> there is one my_own module
> which i will insert whenever i like through 
> insmod.
> thus when the module is loaded it will create a proc
> file 
> 
> now i want to send the structure variable of
> task_struct
> i.e p to the module from the kernel at point when the
> execution passes
> through forking a new process i.e 
> at the function do_fork() in fork.c in linux/kernel
> folder
> 
> how to do this
> 
> how can i call the module from that point  (i.e in
> do_fork())
> and pass the task_struct *p as parameter to the module
> 
> can i declare an arbitary name in fork.c of my module
> and compile the new kernel?
> i think i cannot since i am inserting a dynamic module
> to a static kernel executable
> and how does the kernel will know that this module
> will be attached later to it.
> it will show errors while compiling the new modified
> kernel
> 
> can you help me ?
> what path i must take
> thanks 
> sounak 
> 

Some kind of callback registration would do the job.

Regards,
Martin

-- 
MyExcuse:
Cow-tippers tipped a cow onto the server.

Martin Zwickel <martin.zwickel@technotrend.de>
Research & Development

TechnoTrend AG <http://www.technotrend.de>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: architecture to implement communication between static kernel with dynamic module
  2005-03-03 15:09 architecture to implement communication between static kernel with dynamic module sounak chakraborty
  2005-03-03 15:20 ` Martin Zwickel
@ 2005-03-03 15:30 ` linux-os
  1 sibling, 0 replies; 3+ messages in thread
From: linux-os @ 2005-03-03 15:30 UTC (permalink / raw)
  To: sounak chakraborty; +Cc: Linux kernel


I think there are entirely too many module-wanabees on yahoo!

On Thu, 3 Mar 2005, sounak chakraborty wrote:

> there is one my_own module
> which i will insert whenever i like through
> insmod.
> thus when the module is loaded it will create a proc
> file
>

Can you tell us or me what it is that you are trying to do.
I don't want to know how you've coded it, but rather what
you are trying to accomplish even before you start to write
code!

If you tell us what it is that you are trying to accomplish,
then people who know something about the kernel may try
to teach you how do do it.

Also, it doesn't do any good to use another name from another
yahoo account. We all know that they are free and we can
detect when the same kinds of questions and answers are
repeated.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips).
  Notice : All mail here is now cached for review by Dictator Bush.
                  98.36% of all statistics are fiction.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-03 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 15:09 architecture to implement communication between static kernel with dynamic module sounak chakraborty
2005-03-03 15:20 ` Martin Zwickel
2005-03-03 15:30 ` linux-os

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.