Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ iowait(K) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     IOWAIT(K)                 UNIX System V                 IOWAIT(K)



     Name
          iowait - wait for I/O completion

     Syntax
          int
          iowait(bp)
          struct buf * bp;

     Description
          The iowait routine is called by the higher levels of the
          kernel I/O system to wait for the completion of an I/O
          operation specified by the buffer addressed by the bp
          parameter.  This routine should not be called within an
          interrupt routine since it may call the sleep(K) routine.

          iowait transfers any errors found in bp->b_error to
          u.u_error for the process indicated in the buf header.

     Parameters
          The bp argument specifies a struct buf * that addresses the
          buffer involved in the I/O operation.

     Return Value
          There is no result returned.  The calling process continues
          when the I/O operation is complete.

     Notes
          Note that this routine may only be used with block device
          drivers.

     See Also
          iodone(K), brelse(K)

                                                      (printed 7/6/89)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026