SC_WRITE(2) | SC_WRITE(2) |
#include <sc.h>
int sc_write(int scfd, char* buffer, scarg_t length, scarg_t offset0, scarg_t offset1);
offset0
and offset1
parameters are
given when accessing a device. The semantics of these
parameters are defined by the opened device.
The buffer
variable points to a buffer in the user parallel process.
In the sc_write()
function, the value of length
specifies the valid data length in the buffer.
sc_write()
returns 0 on success
or one of the following errors:
ENODEV
ENOSPACE
EBUSY
EIO
EINTR