user/lib/libsystem/src/x86_64/syscall_arch.c
/**
 * Performs a read of an IO port.
 *
 * @return 0 on success, error code otherwise.
 */
Performs a read of an IO port.
@return 0 on success, error code otherwise.
Performs a read of an IO port . @return 0 on success error code otherwise .
int Amd64PortRead(const uintptr_t port, const uintptr_t flags, uint32_t *read) {
    if(!flags || !read) {
        return -1;
    }
    return __do_syscall3(port, flags, (uintptr_t) read, SYS_ARCH_AMD64_PORT_READ);
}
int Amd64PortRead ( const uintptr_t port , const uintptr_t flags , uint32_t * read ) { if ( ! flags || ! read ) { return -1 ; } return __do_syscall3 ( port , flags , ( uintptr_t ) read , SYS_ARCH_AMD64_PORT_READ ) ; }
Performs a read of an IO port.
Performs a read of an IO port .