user/lib/libsystem/src/x86_64/syscall_arch.c
/**
 * Updates a subset of the IO permission bitmap for the specified task.
 */
Updates a subset of the IO permission bitmap for the specified task.
Updates a subset of the IO permission bitmap for the specified task .
int Amd64UpdateAllowedIoPortsFor(const uintptr_t taskHandle, const void *bitmap,
        const uintptr_t numBits, const uintptr_t offset) {
    if(numBits > 65536 || (offset + numBits) > 65536) {
        return -1;
    }
    return __do_syscall5(taskHandle, (uintptr_t) bitmap, numBits, offset, 0, SYS_ARCH_AMD64_PORT_ALLOWLIST);
}
int Amd64UpdateAllowedIoPortsFor ( const uintptr_t taskHandle , const void * bitmap , const uintptr_t numBits , const uintptr_t offset ) { if ( numBits > 65536 || ( offset + numBits ) > 65536 ) { return -1 ; } return __do_syscall5 ( taskHandle , ( uintptr_t ) bitmap , numBits , offset , 0 , SYS_ARCH_AMD64_PORT_ALLOWLIST ) ; }
Updates a subset of the IO permission bitmap for the specified task.
Updates a subset of the IO permission bitmap for the specified task .
// build the offset/length arg // perform call // TODO: use the flags value