* Making sys_read to operate only on pipefs
@ 2005-01-12 6:40 selvakumar nagendran
2005-01-12 10:34 ` Martin Waitz
0 siblings, 1 reply; 3+ messages in thread
From: selvakumar nagendran @ 2005-01-12 6:40 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 685 bytes --]
Hello linux-experts,
I am intercepting syscalls in kernel 2.4.28. I want
to intercept read system call for the pipefilesystem.
Ofcoure read is a more generic syscall. But while
intercepting it, I have to determine whether this one
operates on a pipe. If it is, I want to perform some
other work, else nothing should be done and the normal
work has to be performed.For this, can I compare the
read function pointer in file operation structure with
the function pipe_read prototype in pipe.c. Is it
possible? If not how can I do that?
Thanks,
selva
__________________________________
Do you Yahoo!?
All your favorites on one personal page Try My Yahoo!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Making sys_read to operate only on pipefs
2005-01-12 6:40 Making sys_read to operate only on pipefs selvakumar nagendran
@ 2005-01-12 10:34 ` Martin Waitz
0 siblings, 0 replies; 3+ messages in thread
From: Martin Waitz @ 2005-01-12 10:34 UTC (permalink / raw)
To: selvakumar nagendran; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
hoi :)
On Tue, Jan 11, 2005 at 10:40:58PM -0800, selvakumar nagendran wrote:
> I am intercepting syscalls in kernel 2.4.28. I want
> to intercept read system call for the pipefilesystem.
why not simply add your code to pipe_read in fs/pipe.c?
--
Martin Waitz
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Making sys_read to operate only on pipefs
@ 2005-01-12 4:03 selvakumar nagendran
0 siblings, 0 replies; 3+ messages in thread
From: selvakumar nagendran @ 2005-01-12 4:03 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 685 bytes --]
Hello linux-experts,
I am intercepting syscalls in kernel 2.4.28. I want
to intercept read system call for the pipefilesystem.
Ofcoure read is a more generic syscall. But while
intercepting it, I have to determine whether this one
operates on a pipe. If it is, I want to perform some
other work, else nothing should be done and the normal
work has to be performed.For this, can I compare the
read function pointer in file operation structure with
the function pipe_read prototype in pipe.c. Is it
possible? If not how can I do that?
Thanks,
selva
__________________________________
Do you Yahoo!?
All your favorites on one personal page Try My Yahoo!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-12 10:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-12 6:40 Making sys_read to operate only on pipefs selvakumar nagendran
2005-01-12 10:34 ` Martin Waitz
-- strict thread matches above, loose matches on Subject: below --
2005-01-12 4:03 selvakumar nagendran
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).