All of lore.kernel.org
 help / color / mirror / Atom feed
* LKM function call on kernel function call?
@ 2005-07-05  8:23 S
  2005-07-05  8:38 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: S @ 2005-07-05  8:23 UTC (permalink / raw)
  To: linux-kernel, linux prg

Is it possible to code a loadable module having function1(), which
would be called, everytime a particular function of the kernel is
called? If not, atleast a way this could be done without re-compiling
the whole kernel and rebooting the system?

Example:

My LKM:
-------------

init_module() {
...
}

function1() {
...
}

cleanup_module() {
...
}


I want function1() to be called, everytime the function
ide_do_rw_disk() of ide-disk.c is called. I do not want to re-compile
the complete kernel to do this.

Thanks in advance,

Regards,
S

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

end of thread, other threads:[~2005-07-14 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-05  8:23 LKM function call on kernel function call? S
2005-07-05  8:38 ` Arjan van de Ven
2005-07-05  8:38 ` Frederik Deweerdt
2005-07-05  8:38   ` Frederik Deweerdt
2005-07-14 16:59 ` Daniel Bonekeeper

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.