usioctl.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * usema/usemaclone-related stuff.
  3.  *
  4.  * `Inspired' by IRIX's sys/usioctl.h
  5.  *
  6.  * Mike.
  7.  */
  8. /* ioctls */
  9. #define UIOC ('u' << 16 | 's' << 8)
  10. #define UIOCATTACHSEMA (UIOC|2) /* attach to sema */
  11. #define UIOCBLOCK (UIOC|3) /* block sync "intr"? */
  12. #define UIOCABLOCK (UIOC|4) /* block async */
  13. #define UIOCNOIBLOCK (UIOC|5) /* IRIX: block sync intr
  14.    Linux: block sync nointr */
  15. #define UIOCUNBLOCK (UIOC|6) /* unblock sync */
  16. #define UIOCAUNBLOCK (UIOC|7) /* unblock async */
  17. #define UIOCINIT (UIOC|8) /* init sema (async) */
  18. typedef struct usattach_s {
  19.   dev_t us_dev; /* attach dev */
  20.   void *us_handle; /* userland semaphore handle */
  21. } usattach_t;