READ_DEVICE_OP(3) | READ_DEVICE_OP(3) |
#include <score_device.h>
int read_device_op(int* tag, int* cell, ioarg_t* offset0, ioarg_t* offset1, int fd);
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.
read_device_op()
returns 0 if a write operation
succeeded. Otherwise it returns a non-zero value.