blob: 23726d896ae5f0972070ffcc7ad3c8dc82dffd5c [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI__DLM_PLOCK_DOT_H__
8#define _UAPI__DLM_PLOCK_DOT_H__
9#include <linux/types.h>
10#define DLM_PLOCK_MISC_NAME "dlm_plock"
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define DLM_PLOCK_VERSION_MAJOR 1
12#define DLM_PLOCK_VERSION_MINOR 2
13#define DLM_PLOCK_VERSION_PATCH 0
14enum {
Tao Baod7db5942015-01-28 10:07:51 -080015 DLM_PLOCK_OP_LOCK = 1,
16 DLM_PLOCK_OP_UNLOCK,
17 DLM_PLOCK_OP_GET,
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070018 DLM_PLOCK_OP_CANCEL,
Ben Cheng655a7c02013-10-16 16:09:24 -070019};
Ben Cheng655a7c02013-10-16 16:09:24 -070020#define DLM_PLOCK_FL_CLOSE 1
21struct dlm_plock_info {
Tao Baod7db5942015-01-28 10:07:51 -080022 __u32 version[3];
23 __u8 optype;
Tao Baod7db5942015-01-28 10:07:51 -080024 __u8 ex;
25 __u8 wait;
26 __u8 flags;
27 __u32 pid;
Tao Baod7db5942015-01-28 10:07:51 -080028 __s32 nodeid;
29 __s32 rv;
30 __u32 fsid;
31 __u64 number;
Tao Baod7db5942015-01-28 10:07:51 -080032 __u64 start;
33 __u64 end;
34 __u64 owner;
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080036#endif