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


CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.