brintos

brintos / linux-shallow public Read only

0
0
Text · 931 B · eb66afc Raw
48 lines · c
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 conditions7 * of the GNU General Public License v.2.8 */9 10#ifndef _UAPI__DLM_PLOCK_DOT_H__11#define _UAPI__DLM_PLOCK_DOT_H__12 13#include <linux/types.h>14 15#define DLM_PLOCK_MISC_NAME		"dlm_plock"16 17#define DLM_PLOCK_VERSION_MAJOR	118#define DLM_PLOCK_VERSION_MINOR	219#define DLM_PLOCK_VERSION_PATCH	020 21enum {22	DLM_PLOCK_OP_LOCK = 1,23	DLM_PLOCK_OP_UNLOCK,24	DLM_PLOCK_OP_GET,25	DLM_PLOCK_OP_CANCEL,26};27 28#define DLM_PLOCK_FL_CLOSE 129 30struct dlm_plock_info {31	__u32 version[3];32	__u8 optype;33	__u8 ex;34	__u8 wait;35	__u8 flags;36	__u32 pid;37	__s32 nodeid;38	__s32 rv;39	__u32 fsid;40	__u64 number;41	__u64 start;42	__u64 end;43	__u64 owner;44};45 46 47#endif /* _UAPI__DLM_PLOCK_DOT_H__ */48