lkml.org 
[lkml]   [2005]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: architecture to implement communication between static kernel with dynamic module
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>
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:1.005 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site