xref: /openbmc/linux/fs/dlm/member.h (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
12522fe45SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2e7fd4179SDavid Teigland /******************************************************************************
3e7fd4179SDavid Teigland *******************************************************************************
4e7fd4179SDavid Teigland **
560f98d18SDavid Teigland **  Copyright (C) 2005-2011 Red Hat, Inc.  All rights reserved.
6e7fd4179SDavid Teigland **
7e7fd4179SDavid Teigland **
8e7fd4179SDavid Teigland *******************************************************************************
9e7fd4179SDavid Teigland ******************************************************************************/
10e7fd4179SDavid Teigland 
11e7fd4179SDavid Teigland #ifndef __MEMBER_DOT_H__
12e7fd4179SDavid Teigland #define __MEMBER_DOT_H__
13e7fd4179SDavid Teigland 
14e7fd4179SDavid Teigland int dlm_ls_stop(struct dlm_ls *ls);
15e7fd4179SDavid Teigland int dlm_ls_start(struct dlm_ls *ls);
16e7fd4179SDavid Teigland void dlm_clear_members(struct dlm_ls *ls);
17e7fd4179SDavid Teigland void dlm_clear_members_gone(struct dlm_ls *ls);
18e7fd4179SDavid Teigland int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out);
19e7fd4179SDavid Teigland int dlm_is_removed(struct dlm_ls *ls, int nodeid);
2046b43eedSDavid Teigland int dlm_is_member(struct dlm_ls *ls, int nodeid);
21*11519351SAlexander Aring int dlm_slots_version(const struct dlm_header *h);
22757a4271SDavid Teigland void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc,
23757a4271SDavid Teigland 		   struct dlm_member *memb);
24757a4271SDavid Teigland void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc);
25757a4271SDavid Teigland int dlm_slots_copy_in(struct dlm_ls *ls);
26757a4271SDavid Teigland int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size,
27757a4271SDavid Teigland 		     struct dlm_slot **slots_out, uint32_t *gen_out);
2860f98d18SDavid Teigland void dlm_lsop_recover_done(struct dlm_ls *ls);
29e7fd4179SDavid Teigland 
30e7fd4179SDavid Teigland #endif                          /* __MEMBER_DOT_H__ */
31e7fd4179SDavid Teigland 
32