dlm_plock.h 846 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
  3. *
  4. * This copyrighted material is made available to anyone wishing to use,
  5. * modify, copy, or redistribute it subject to the terms and conditions
  6. * of the GNU General Public License v.2.
  7. */
  8. #ifndef _UAPI__DLM_PLOCK_DOT_H__
  9. #define _UAPI__DLM_PLOCK_DOT_H__
  10. #include <linux/types.h>
  11. #define DLM_PLOCK_MISC_NAME "dlm_plock"
  12. #define DLM_PLOCK_VERSION_MAJOR 1
  13. #define DLM_PLOCK_VERSION_MINOR 2
  14. #define DLM_PLOCK_VERSION_PATCH 0
  15. enum {
  16. DLM_PLOCK_OP_LOCK = 1,
  17. DLM_PLOCK_OP_UNLOCK,
  18. DLM_PLOCK_OP_GET,
  19. };
  20. #define DLM_PLOCK_FL_CLOSE 1
  21. struct dlm_plock_info {
  22. __u32 version[3];
  23. __u8 optype;
  24. __u8 ex;
  25. __u8 wait;
  26. __u8 flags;
  27. __u32 pid;
  28. __s32 nodeid;
  29. __s32 rv;
  30. __u32 fsid;
  31. __u64 number;
  32. __u64 start;
  33. __u64 end;
  34. __u64 owner;
  35. };
  36. #endif /* _UAPI__DLM_PLOCK_DOT_H__ */