auto_fs4.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /* -*- c -*-
  2.  * linux/include/linux/auto_fs4.h
  3.  *
  4.  * Copyright 1999-2000 Jeremy Fitzhardinge <jeremy@goop.org>
  5.  *
  6.  * This file is part of the Linux kernel and is made available under
  7.  * the terms of the GNU General Public License, version 2, or at your
  8.  * option, any later version, incorporated herein by reference.
  9.  */
  10. #ifndef _LINUX_AUTO_FS4_H
  11. #define _LINUX_AUTO_FS4_H
  12. /* Include common v3 definitions */
  13. #include <linux/auto_fs.h>
  14. /* autofs v4 definitions */
  15. #undef AUTOFS_PROTO_VERSION
  16. #undef AUTOFS_MIN_PROTO_VERSION
  17. #undef AUTOFS_MAX_PROTO_VERSION
  18. #define AUTOFS_PROTO_VERSION 4
  19. #define AUTOFS_MIN_PROTO_VERSION 3
  20. #define AUTOFS_MAX_PROTO_VERSION 4
  21. #define AUTOFS_PROTO_SUBVERSION 7
  22. /* Mask for expire behaviour */
  23. #define AUTOFS_EXP_IMMEDIATE 1
  24. #define AUTOFS_EXP_LEAVES 2
  25. /* New message type */
  26. #define autofs_ptype_expire_multi 2 /* Expire entry (umount request) */
  27. /* v4 multi expire (via pipe) */
  28. struct autofs_packet_expire_multi {
  29. struct autofs_packet_hdr hdr;
  30.         autofs_wqt_t wait_queue_token;
  31. int len;
  32. char name[NAME_MAX+1];
  33. };
  34. union autofs_packet_union {
  35. struct autofs_packet_hdr hdr;
  36. struct autofs_packet_missing missing;
  37. struct autofs_packet_expire expire;
  38. struct autofs_packet_expire_multi expire_multi;
  39. };
  40. #define AUTOFS_IOC_EXPIRE_MULTI _IOW(0x93,0x66,int)
  41. #define AUTOFS_IOC_PROTOSUBVER _IOR(0x93,0x67,int)
  42. #define AUTOFS_IOC_ASKREGHOST           _IOR(0x93,0x68,int)
  43. #define AUTOFS_IOC_TOGGLEREGHOST        _IOR(0x93,0x69,int)
  44. #define AUTOFS_IOC_ASKUMOUNT _IOR(0x93,0x70,int)
  45. #endif /* _LINUX_AUTO_FS4_H */