ioctl() investigation - TO RESET

This commit is contained in:
Balazs Gerofi
2017-08-30 18:38:47 +09:00
parent 815e2244ca
commit 73cc07f98e
5 changed files with 269 additions and 12 deletions

View File

@@ -46,9 +46,7 @@ struct perf_event_attr;
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
#ifndef __KERNEL__
#define _IOC_TYPECHECK(t) (sizeof(t))
#endif
/* used to create numbers */
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)