1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /********************************************* 2 /****************************************************************************** 3 ********************************************** 3 ******************************************************************************* 4 ** 4 ** 5 ** Copyright (C) 2005-2010 Red Hat, Inc. All 5 ** Copyright (C) 2005-2010 Red Hat, Inc. All rights reserved. 6 ** 6 ** 7 ** 7 ** 8 ********************************************** 8 ******************************************************************************* 9 ********************************************** 9 ******************************************************************************/ 10 10 11 #ifndef __ASTD_DOT_H__ 11 #ifndef __ASTD_DOT_H__ 12 #define __ASTD_DOT_H__ 12 #define __ASTD_DOT_H__ 13 13 14 bool dlm_may_skip_callback(struct dlm_lkb *lkb !! 14 #define DLM_ENQUEUE_CALLBACK_NEED_SCHED 1 15 int status, uint32_ !! 15 #define DLM_ENQUEUE_CALLBACK_SUCCESS 0 16 int dlm_get_cb(struct dlm_lkb *lkb, uint32_t f !! 16 #define DLM_ENQUEUE_CALLBACK_FAILURE -1 17 int status, uint32_t sbflags, !! 17 int dlm_enqueue_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, 18 struct dlm_callback **cb); !! 18 int status, uint32_t sbflags); >> 19 #define DLM_DEQUEUE_CALLBACK_EMPTY 2 >> 20 #define DLM_DEQUEUE_CALLBACK_LAST 1 >> 21 #define DLM_DEQUEUE_CALLBACK_SUCCESS 0 >> 22 int dlm_dequeue_lkb_callback(struct dlm_lkb *lkb, struct dlm_callback **cb); 19 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t 23 void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, 20 uint32_t sbflags); 24 uint32_t sbflags); >> 25 void dlm_callback_set_last_ptr(struct dlm_callback **from, >> 26 struct dlm_callback *to); 21 27 >> 28 void dlm_release_callback(struct kref *ref); >> 29 void dlm_callback_work(struct work_struct *work); 22 int dlm_callback_start(struct dlm_ls *ls); 30 int dlm_callback_start(struct dlm_ls *ls); 23 void dlm_callback_stop(struct dlm_ls *ls); 31 void dlm_callback_stop(struct dlm_ls *ls); 24 void dlm_callback_suspend(struct dlm_ls *ls); 32 void dlm_callback_suspend(struct dlm_ls *ls); 25 void dlm_callback_resume(struct dlm_ls *ls); 33 void dlm_callback_resume(struct dlm_ls *ls); 26 34 27 #endif 35 #endif 28 36 29 37 30 38
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.