diff options
Diffstat (limited to 'sys/compat/linux/linux_ioctl.h')
| -rw-r--r-- | sys/compat/linux/linux_ioctl.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index ccc25bc919ab..8345b7e4b719 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -823,4 +823,16 @@ int	linux32_ioctl_register_handler(struct linux_ioctl_handler *h);  int	linux32_ioctl_unregister_handler(struct linux_ioctl_handler *h);  #endif +#define LINUX_IOCTL_SET(n, low, high)				\ +static linux_ioctl_function_t n##_linux_ioctl;			\ +static struct linux_ioctl_handler n##_linux_handler = {		\ +	n##_linux_ioctl,					\ +	low,							\ +	high							\ +};								\ +SYSINIT(n##_ioctl_register, SI_SUB_KLD, SI_ORDER_MIDDLE,	\ +    linux_ioctl_register_handler, &n##_linux_handler);		\ +SYSUNINIT(n##_ioctl_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,	\ +    linux_ioctl_unregister_handler, &n##_linux_handler) +  #endif /* !_LINUX_IOCTL_H_ */ | 
