Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 1996 10:27:08 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        leisner@sdsp.mc.xerox.com, msmith@atrad.adelaide.edu.au, questions@freebsd.org
Subject:   Re: non-blocking read ?
Message-ID:  <199603122357.KAA00112@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199603121806.TAA20924@labinfo.iet.unipi.it> from "Luigi Rizzo" at Mar 12, 96 07:06:55 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo stands accused of saying:
> 
> Someone suggested doing async IO and handling SIGIO (I suppose this
> refers to doing

See my previous message regarding not being sure about this, and
definitely check how harvest does it, I'm sure I was wrong earlier 8(

> But how much data will be available when I get the SIGIO (or select
> will return that I/O is possible) ? The amount I requested (assuming it
> is available), or the system idea of a block, or what ?

"some"; you call read and examine the return value to see how much you get.

Thinking about it further, I don't see how this would work for disk I/O;
it's not until the read itself is issued that the disk request is 
queued ...

> Luigi Rizzo                     Dip. di Ingegneria dell'Informazione

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 0411-222-496       [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] Collector of old Unix hardware.      "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603122357.KAA00112>