lkml.org 
[lkml]   [1999]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Async user space notification from kernel?
Date
Followup to:  <19990826120820.A5360@xmission.com>
By author: Erik Andersen <andersen@xmission.com>
In newsgroup: linux.dev.kernel
>
> On Thu, Aug 26, 1999 at 12:54:35PM -0400, Jeff Garzik wrote:
> > Erik Andersen wrote:
> > > Select(2) on /proc is indeed disappointing -- it does nothing
> > > useful.
> >
> > I still wonder if this is because 'read' is the only proc operation that
> > is filled in... All of the net routines share
> > 'proc_net_inode_operations'.
> >
> > Jeff
>
> Ok, I follow you now -- select(2) depends on certain fs file
> operations that no /proc entries currently provide. By adjusting the
> file_operations, and providing some needed magic, I could indeed use
> select on a /proc entry to get async event notification to user space.
> That would be a very elegant solution.
>
> Any hints as to what file_ops are needed to support select?
> Clearly read and write are not sufficient. flush? poll?
>

poll.

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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