member.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /******************************************************************************
  3. *******************************************************************************
  4. **
  5. ** Copyright (C) 2005-2011 Red Hat, Inc. All rights reserved.
  6. **
  7. **
  8. *******************************************************************************
  9. ******************************************************************************/
  10. #ifndef __MEMBER_DOT_H__
  11. #define __MEMBER_DOT_H__
  12. int dlm_ls_stop(struct dlm_ls *ls);
  13. int dlm_ls_start(struct dlm_ls *ls);
  14. void dlm_clear_members(struct dlm_ls *ls);
  15. void dlm_clear_members_gone(struct dlm_ls *ls);
  16. int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out);
  17. int dlm_is_removed(struct dlm_ls *ls, int nodeid);
  18. int dlm_is_member(struct dlm_ls *ls, int nodeid);
  19. int dlm_slots_version(struct dlm_header *h);
  20. void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc,
  21. struct dlm_member *memb);
  22. void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc);
  23. int dlm_slots_copy_in(struct dlm_ls *ls);
  24. int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size,
  25. struct dlm_slot **slots_out, uint32_t *gen_out);
  26. void dlm_lsop_recover_done(struct dlm_ls *ls);
  27. #endif /* __MEMBER_DOT_H__ */