From: S <talk2sumit@gmail.com>
To: linux-kernel@vger.kernel.org,
linux prg <linux-c-programming@vger.kernel.org>
Subject: LKM function call on kernel function call?
Date: Tue, 5 Jul 2005 16:23:18 +0800 [thread overview]
Message-ID: <1458d9610507050123124d6cb@mail.gmail.com> (raw)
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
next reply other threads:[~2005-07-05 8:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-05 8:23 S [this message]
2005-07-05 8:38 ` LKM function call on kernel function call? Arjan van de Ven
2005-07-05 8:38 ` Frederik Deweerdt
2005-07-14 16:59 ` Daniel Bonekeeper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458d9610507050123124d6cb@mail.gmail.com \
--to=talk2sumit@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).