READ_DEVICE_OP(3)
SCORE-D DEVICE PROGRAMMING
READ_DEVICE_OP(3)

NAME
read_device_op - wait for an I/O request from an application

SYNOPSIS
#include <score_device.h>

int read_device_op(int* tag, int* cell, ioarg_t* offset0, ioarg_t* offset1, int fd);

DESCRIPTION
The read_device_op() function waits for an I/O request from a user-parallel process through SCore-D. The offset0 and offset1 arguments are passed from an I/O request associated with sc_read() or sc_write(). The semantics of those arguments are device dependent.

RETURN VALUES
read_device_op() returns 0 if a write operation succeeded. Otherwise it returns a non-zero value.

SEE ALSO
Device programming example


$Id: read_device_op.html,v 1.2 2002/02/27 12:39:35 liu Exp $