Blame view
include/linux/dlm_netlink.h
1.04 KB
3ae1acf93 [DLM] add lock ti... |
1 2 3 4 5 6 7 8 9 10 |
/* * Copyright (C) 2007 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public License v.2. */ #ifndef _DLM_NETLINK_H #define _DLM_NETLINK_H |
9adfbfb61 make most exporte... |
11 |
#include <linux/types.h> |
3ae1acf93 [DLM] add lock ti... |
12 13 14 15 16 17 18 19 20 |
enum { DLM_STATUS_WAITING = 1, DLM_STATUS_GRANTED = 2, DLM_STATUS_CONVERT = 3, }; #define DLM_LOCK_DATA_VERSION 1 struct dlm_lock_data { |
9adfbfb61 make most exporte... |
21 22 |
__u16 version; __u32 lockspace_id; |
3ae1acf93 [DLM] add lock ti... |
23 24 |
int nodeid; int ownpid; |
9adfbfb61 make most exporte... |
25 26 27 28 29 30 |
__u32 id; __u32 remid; __u64 xid; __s8 status; __s8 grmode; __s8 rqmode; |
3ae1acf93 [DLM] add lock ti... |
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
unsigned long timestamp; int resource_namelen; char resource_name[DLM_RESNAME_MAXLEN]; }; enum { DLM_CMD_UNSPEC = 0, DLM_CMD_HELLO, /* user->kernel */ DLM_CMD_TIMEOUT, /* kernel->user */ __DLM_CMD_MAX, }; #define DLM_CMD_MAX (__DLM_CMD_MAX - 1) enum { DLM_TYPE_UNSPEC = 0, DLM_TYPE_LOCK, __DLM_TYPE_MAX, }; #define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1) #define DLM_GENL_VERSION 0x1 #define DLM_GENL_NAME "DLM" #endif /* _DLM_NETLINK_H */ |