I386_GET_IOPERM(2) NetBSD Programmer's Manual I386_GET_IOPERM(2) NNAAMMEE ii338866__ggeett__iiooppeerrmm, ii338866__sseett__iiooppeerrmm - manage i386 per-process I/O permission bitmap SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t ii338866__ggeett__iiooppeerrmm(_u___l_o_n_g _*_i_o_m_a_p) _i_n_t ii338866__sseett__iiooppeerrmm(_u___l_o_n_g _*_i_o_m_a_p) DDEESSCCRRIIPPTTIIOONN ii338866__ggeett__iiooppeerrmm() copies the current I/O permission bitmap into the memo- ry referenced by _i_o_m_a_p. ii338866__sseett__iiooppeerrmm() sets the I/O permission bitmap from the data pointed to by _i_o_m_a_p. This call is restricted to the super-user. RREETTUURRNN VVAALLUUEESS Upon successful completion, ii338866__ggeett__iiooppeerrmm() and ii338866__sseett__iiooppeerrmm() re- turn 0. Otherwise, a value of -1 is returned and the global variable _e_r_r_n_o is set to indicate the error. EERRRROORRSS ii338866__ggeett__iiooppeerrmm() and ii338866__sseett__iiooppeerrmm() will fail if: [EFAULT] _I_o_m_a_p points outside the process's allocated address space. [EPERM] The caller was not the super-user. RREEFFEERREENNCCEESS i386 Microprocessor Programmer's Reference Manual, Intel NetBSD December 18, 1995 1