mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: implement _IOC_TYPE and _IOC_NR macros in linux/ioctl.h
They are used by drm-kmod
Reviewed by: emaste, hselasky, manu
Differential revision: https://reviews.freebsd.org/D31674
(cherry picked from commit b58c916f11)
This commit is contained in:
parent
fd6adf784e
commit
2c26756366
1 changed files with 3 additions and 1 deletions
|
|
@ -33,6 +33,8 @@
|
|||
|
||||
#include <sys/ioccom.h>
|
||||
|
||||
#define _IOC_SIZE(cmd) IOCPARM_LEN(cmd)
|
||||
#define _IOC_SIZE(cmd) IOCPARM_LEN(cmd)
|
||||
#define _IOC_TYPE(cmd) IOCGROUP(cmd)
|
||||
#define _IOC_NR(cmd) ((cmd) & 0xff)
|
||||
|
||||
#endif /* _LINUX_IOCTL_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue