Uninitialized vector entry?
[minix3.git] / lib / syslib / sys_sdevio.c
blobe6bfcb2f83952b3eb418e1bd341ace1a2295dc00
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_sdevio *
5 *===========================================================================*/
6 PUBLIC int sys_sdevio(req, port, proc_nr, buffer, count, offset)
7 int req; /* request: DIO_{IN,OUT}PUT_* */
8 long port; /* port address to read from */
9 endpoint_t proc_nr; /* process where buffer is */
10 void *buffer; /* pointer to buffer */
11 int count; /* number of elements */
12 vir_bytes offset; /* offset from grant */
14 message m_io;
15 int result;
17 m_io.DIO_REQUEST = req;
18 m_io.DIO_PORT = port;
19 m_io.DIO_VEC_ENDPT = proc_nr;
20 m_io.DIO_VEC_ADDR = buffer;
21 m_io.DIO_VEC_SIZE = count;
22 m_io.DIO_OFFSET = offset;
24 return(_taskcall(SYSTASK, SYS_SDEVIO, &m_io));