lkml.org 
[lkml]   [1999]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Non-blocking read
   Date: 	Mon, 14 Jun 1999 20:08:36 +0200 (CEST)
From: Arjan van de Ven <arjan@fenrus.demon.nl>

I want to do a non-blocking read from a file, from within the kernel.
Is this, at all, possible? I have been tracing how userspace does this,
but the userspace does not seem to be non-blocking either.

...

By looking at the code (2.3.6), there seems to be no possibility to do
this. Am I wrong or is it not worth the effort (I might disagree) or just
impossible?

You probably want "filp->f_flags |= O_NONBLOCK"

Later,
David S. Miller
davem@redhat.com


-
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:52    [W:0.068 / U:1.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site