lkml.org 
[lkml]   [2005]   [Jan]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 11 Jan 2005 22:40:58 -0800 (PST)
Fromselvakumar nagendran <>
SubjectMaking sys_read to operate only on pipefs
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 
\
 
 \ /
  Last update: 2005-03-22 14:09    [from the cache]
©2003-2008