LKM function call on kernel function call?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux