#ifndef CHARDEV_H #define CHARDEV_H #include // We can't rely on dynamic registration any more, because ioctls need // to know it. #define DEVICE_MAJOR 239 #define DEVICE_MINORS 2 // commands to be exposed to the ioctl interface #define IOCTL_SET_SEND_TIMEOUT _IOW(DEVICE_MAJOR, 0, unsigned long) #define IOCTL_SET_RECV_TIMEOUT _IOW(DEVICE_MAJOR, 1, unsigned long) #define IOCTL_REVOKE_DELAYED_MESSAGES _IO(DEVICE_MAJOR, 2) #endif