driver: support IOCTLs