1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved. 4607ca46eSDavid Howells * 5607ca46eSDavid Howells * This copyrighted material is made available to anyone wishing to use, 6607ca46eSDavid Howells * modify, copy, or redistribute it subject to the terms and conditions 7607ca46eSDavid Howells * of the GNU General Public License v.2. 8607ca46eSDavid Howells */ 9607ca46eSDavid Howells 10607ca46eSDavid Howells #ifndef _UAPI__DLM_PLOCK_DOT_H__ 11607ca46eSDavid Howells #define _UAPI__DLM_PLOCK_DOT_H__ 12607ca46eSDavid Howells 13607ca46eSDavid Howells #include <linux/types.h> 14607ca46eSDavid Howells 15607ca46eSDavid Howells #define DLM_PLOCK_MISC_NAME "dlm_plock" 16607ca46eSDavid Howells 17607ca46eSDavid Howells #define DLM_PLOCK_VERSION_MAJOR 1 18607ca46eSDavid Howells #define DLM_PLOCK_VERSION_MINOR 2 19607ca46eSDavid Howells #define DLM_PLOCK_VERSION_PATCH 0 20607ca46eSDavid Howells 21607ca46eSDavid Howells enum { 22607ca46eSDavid Howells DLM_PLOCK_OP_LOCK = 1, 23607ca46eSDavid Howells DLM_PLOCK_OP_UNLOCK, 24607ca46eSDavid Howells DLM_PLOCK_OP_GET, 25*568f9156SAlexander Aring DLM_PLOCK_OP_CANCEL, 26607ca46eSDavid Howells }; 27607ca46eSDavid Howells 28607ca46eSDavid Howells #define DLM_PLOCK_FL_CLOSE 1 29607ca46eSDavid Howells 30607ca46eSDavid Howells struct dlm_plock_info { 31607ca46eSDavid Howells __u32 version[3]; 32607ca46eSDavid Howells __u8 optype; 33607ca46eSDavid Howells __u8 ex; 34607ca46eSDavid Howells __u8 wait; 35607ca46eSDavid Howells __u8 flags; 36607ca46eSDavid Howells __u32 pid; 37607ca46eSDavid Howells __s32 nodeid; 38607ca46eSDavid Howells __s32 rv; 39607ca46eSDavid Howells __u32 fsid; 40607ca46eSDavid Howells __u64 number; 41607ca46eSDavid Howells __u64 start; 42607ca46eSDavid Howells __u64 end; 43607ca46eSDavid Howells __u64 owner; 44607ca46eSDavid Howells }; 45607ca46eSDavid Howells 46607ca46eSDavid Howells 47607ca46eSDavid Howells #endif /* _UAPI__DLM_PLOCK_DOT_H__ */ 48