xref: /linux/fs/dlm/ast.h (revision ab52c59103002b49f2455371e4b9c56ba3ef1781)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /******************************************************************************
3 *******************************************************************************
4 **
5 **  Copyright (C) 2005-2010 Red Hat, Inc.  All rights reserved.
6 **
7 **
8 *******************************************************************************
9 ******************************************************************************/
10 
11 #ifndef __ASTD_DOT_H__
12 #define __ASTD_DOT_H__
13 
14 #define DLM_ENQUEUE_CALLBACK_NEED_SCHED	1
15 #define DLM_ENQUEUE_CALLBACK_SUCCESS	0
16 #define DLM_ENQUEUE_CALLBACK_FAILURE	-1
17 int dlm_queue_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode,
18 			   int status, uint32_t sbflags,
19 			   struct dlm_callback **cb);
20 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status,
21                 uint32_t sbflags);
22 
23 int dlm_callback_start(struct dlm_ls *ls);
24 void dlm_callback_stop(struct dlm_ls *ls);
25 void dlm_callback_suspend(struct dlm_ls *ls);
26 void dlm_callback_resume(struct dlm_ls *ls);
27 
28 #endif
29 
30 
31