dlm_plock.h 909 B

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