random

:-)
git clone read: git://git.margiolis.net/random.git
Log | Files | Refs | LICENSE

mydev.h (280B)


      1 #ifndef _MYDEV_H_
      2 #define _MYDEV_H_
      3 
      4 #include <sys/types.h>
      5 #include <sys/ioccom.h>
      6 
      7 typedef struct {
      8 	int x;
      9 	int y;
     10 } bar_t;
     11 
     12 #define MYDEVIOC_READ	_IOR('a', 1, bar_t)
     13 #define MYDEVIOC_WRITE	_IOW('a', 2, bar_t)
     14 #define MYDEVIOC_RDWR	_IOWR('a', 3, bar_t)
     15 
     16 #endif /* _MYDEV_H_ */