int open(Process *p, ThreadContext *tc, int mode, int flags)
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...
int ioctl(Process *p, ThreadContext *tc, unsigned req)
Abstract method, invoked when the user program calls ioctl() on the file descriptor returned by a pre...