int ioctl(ThreadContext *tc, unsigned req, Addr buf) override
Abstract method, invoked when the user program calls ioctl() on the file descriptor returned by a pre...
int open(ThreadContext *tc, int mode, int flags) override
Abstract method, invoked when the user program calls open() on the device driver.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Addr mmap(ThreadContext *tc, Addr start, uint64_t length, int prot, int tgt_flags, int tgt_fd, off_t offset) override
Virtual method, invoked when the user program calls mmap() on the file descriptor returned by a previ...