VM: full munmap
[minix.git] / lib / libsys / sys_sdevio.c
blob876ceb6cfa2f422b7794212877b1af0c4ad6cecd
1 #include "syslib.h"
3 /*===========================================================================*
4 * sys_sdevio *
5 *===========================================================================*/
6 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;
16 m_io.DIO_REQUEST = req;
17 m_io.DIO_PORT = port;
18 m_io.DIO_VEC_ENDPT = proc_nr;
19 m_io.DIO_VEC_ADDR = buffer;
20 m_io.DIO_VEC_SIZE = count;
21 m_io.DIO_OFFSET = offset;
23 return(_kernel_call(SYS_SDEVIO, &m_io));