diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-22 19:40:08 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-30 14:43:45 +0000 |
commit | 619fe095861274576a2cb45628076968051b1585 (patch) | |
tree | ebaf8b065b3592a768f765c4346e21ad301e269a | |
parent | 07f229d20c0cd6285c5ddf1df45eb69bbea4445b (diff) | |
download | src-619fe095861274576a2cb45628076968051b1585.tar.gz src-619fe095861274576a2cb45628076968051b1585.zip |
ioccom: define ioctl cmd value that can never be valid
Its use is for cases where some filler is needed for cmd, or we need an
indication that there were no cmd supplied, and so on.
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29935
-rw-r--r-- | sys/sys/ioccom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/ioccom.h b/sys/sys/ioccom.h index 0329ac358491..13faba046719 100644 --- a/sys/sys/ioccom.h +++ b/sys/sys/ioccom.h @@ -79,6 +79,9 @@ #define IOCPARM_IVAL(x) ((int)(intptr_t)(void *)*(caddr_t *)(void *)(x)) #endif +#define _IOC_INVALID (_IOC_VOID|_IOC_INOUT) /* Never valid cmd value, + use as filler */ + #else #include <sys/cdefs.h> |