lkml.org 
[lkml]   [2005]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Intercepting VFS calls
> Frederik Deweerdt wrote:
>
> > Le 20/06/05 12:37 +0200, Przemyslaw Sowa écrivit:
> >
> >
> >> Hello,
> >>
> >> I'd like to intercept VFS calls like read() and write() in 2.6
> kernels but I'm new in kernel development and I don't know how to do
> it.
> >>
> >> Could you help me, please?
> >>
> >>
> >
> > You could have a look at kprobes.
> > Regards,
> > Frederik Deweerdt
> >
> >
> >
> Thank you for the answer, but I need some way to execute my own
> function (from a module) instead of read(), wrte()... and I don't want
> to use any kernel patch. Is it possible?
It's impossible without patching the kernel. Why do you want to
intercept the calls? Isn't it enough to intercept the system calls? Then
you can do it from the userspace by tracing the process.

Honza

--
Jan Kara <jack@suse.cz>
SuSE CR Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-23 15:44    [W:0.279 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site