lock_dlm_plock.h 765 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2005 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 __LOCK_DLM_PLOCK_DOT_H__
  9. #define __LOCK_DLM_PLOCK_DOT_H__
  10. #define GDLM_PLOCK_MISC_NAME "lock_dlm_plock"
  11. #define GDLM_PLOCK_VERSION_MAJOR 1
  12. #define GDLM_PLOCK_VERSION_MINOR 1
  13. #define GDLM_PLOCK_VERSION_PATCH 0
  14. enum {
  15. GDLM_PLOCK_OP_LOCK = 1,
  16. GDLM_PLOCK_OP_UNLOCK,
  17. GDLM_PLOCK_OP_GET,
  18. };
  19. struct gdlm_plock_info {
  20. __u32 version[3];
  21. __u8 optype;
  22. __u8 ex;
  23. __u8 wait;
  24. __u8 pad;
  25. __u32 pid;
  26. __s32 nodeid;
  27. __s32 rv;
  28. __u32 fsid;
  29. __u64 number;
  30. __u64 start;
  31. __u64 end;
  32. __u64 owner;
  33. };
  34. #endif