Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 authored by Linus Torvalds on 28 October 2012, 19:24:48 UTC
Linux 3.7-rc3
Tip revision: 8f0d816
ioctl.h
#ifndef _ASM_GENERIC_IOCTL_H
#define _ASM_GENERIC_IOCTL_H

#include <uapi/asm-generic/ioctl.h>

/* provoke compile error for invalid uses of size argument */
extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
	((sizeof(t) == sizeof(t[1]) && \
	  sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
	  sizeof(t) : __invalid_size_argument_for_IOC)
#endif /* _ASM_GENERIC_IOCTL_H */
back to top