1 /* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
6 * Glue to the underlying cluster stack.
8 * Copyright (C) 2007 Oracle. All rights reserved.
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public
12 * License as published by the Free Software Foundation, version 2.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
24 struct ocfs2_locking_protocol {
25 void (*lp_lock_ast)(void *astarg);
26 void (*lp_blocking_ast)(void *astarg, int level);
27 void (*lp_unlock_ast)(void *astarg, enum dlm_status status);
30 enum dlm_status ocfs2_dlm_lock(struct dlm_ctxt *dlm,
32 struct dlm_lockstatus *lksb,
37 enum dlm_status ocfs2_dlm_unlock(struct dlm_ctxt *dlm,
38 struct dlm_lockstatus *lksb,
42 void o2cb_get_stack(struct ocfs2_locking_protocol *proto);
43 void o2cb_put_stack(void);
45 #endif /* STACKGLUE_H */