12522fe45SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2e7fd4179SDavid Teigland /****************************************************************************** 3e7fd4179SDavid Teigland ******************************************************************************* 4e7fd4179SDavid Teigland ** 57fe2b319SDavid Teigland ** Copyright (C) 2005-2010 Red Hat, Inc. All rights reserved. 6e7fd4179SDavid Teigland ** 7e7fd4179SDavid Teigland ** 8e7fd4179SDavid Teigland ******************************************************************************* 9e7fd4179SDavid Teigland ******************************************************************************/ 10e7fd4179SDavid Teigland 11e7fd4179SDavid Teigland #ifndef __ASTD_DOT_H__ 12e7fd4179SDavid Teigland #define __ASTD_DOT_H__ 13e7fd4179SDavid Teigland 14*61bed0baSAlexander Aring #define DLM_ENQUEUE_CALLBACK_NEED_SCHED 1 15*61bed0baSAlexander Aring #define DLM_ENQUEUE_CALLBACK_SUCCESS 0 16*61bed0baSAlexander Aring #define DLM_ENQUEUE_CALLBACK_FAILURE -1 17*61bed0baSAlexander Aring int dlm_enqueue_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, 18*61bed0baSAlexander Aring int status, uint32_t sbflags); 19*61bed0baSAlexander Aring #define DLM_DEQUEUE_CALLBACK_EMPTY 2 20*61bed0baSAlexander Aring #define DLM_DEQUEUE_CALLBACK_LAST 1 21*61bed0baSAlexander Aring #define DLM_DEQUEUE_CALLBACK_SUCCESS 0 22*61bed0baSAlexander Aring int dlm_dequeue_lkb_callback(struct dlm_lkb *lkb, struct dlm_callback **cb); 2323e8e1aaSDavid Teigland void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, 248304d6f2SDavid Teigland uint32_t sbflags); 25*61bed0baSAlexander Aring void dlm_callback_set_last_ptr(struct dlm_callback **from, 26*61bed0baSAlexander Aring struct dlm_callback *to); 27e7fd4179SDavid Teigland 28*61bed0baSAlexander Aring void dlm_release_callback(struct kref *ref); 2923e8e1aaSDavid Teigland void dlm_callback_work(struct work_struct *work); 3023e8e1aaSDavid Teigland int dlm_callback_start(struct dlm_ls *ls); 3123e8e1aaSDavid Teigland void dlm_callback_stop(struct dlm_ls *ls); 3223e8e1aaSDavid Teigland void dlm_callback_suspend(struct dlm_ls *ls); 3323e8e1aaSDavid Teigland void dlm_callback_resume(struct dlm_ls *ls); 34e7fd4179SDavid Teigland 35e7fd4179SDavid Teigland #endif 36e7fd4179SDavid Teigland 3723e8e1aaSDavid Teigland 38