lkml.org 
[lkml]   [1996]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: strange disk activity [tail -f]
Date
In article <199604020857.JAA16902@sable.ox.ac.uk>, Malcolm Beattie <mbeattie@sable.ox.ac.uk> writes:
> Ingo Molnar writes:
> > might be a stupid question, but is there no way doing event based reads
> > on files [selects and/or blocking reads at the end of the file] ?
>
> There was an extension to FFS for "watchdogs" which allowed user-mode
> programs to "guard" files and directories.


The SGI Irix has a similar facility,
called 'fam' (filesystem alteration monitor).

User-mode programs use an ioctl() to register their
interest in a file and then read kernel messages (such
as "files was changed", "file was deleted", etc...) from
/dev/imon.


C.O.


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.232 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site