18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* -*- mode: c; c-basic-offset: 8; -*- 38c2ecf20Sopenharmony_ci * vim: noexpandtab sw=8 ts=8 sts=0: 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * heartbeat.h 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Function prototypes 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Copyright (C) 2002, 2004 Oracle. All rights reserved. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef OCFS2_HEARTBEAT_H 138c2ecf20Sopenharmony_ci#define OCFS2_HEARTBEAT_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid ocfs2_init_node_maps(struct ocfs2_super *osb); 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_civoid ocfs2_do_node_down(int node_num, void *data); 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* node map functions - used to keep track of mounted and in-recovery 208c2ecf20Sopenharmony_ci * nodes. */ 218c2ecf20Sopenharmony_civoid ocfs2_node_map_set_bit(struct ocfs2_super *osb, 228c2ecf20Sopenharmony_ci struct ocfs2_node_map *map, 238c2ecf20Sopenharmony_ci int bit); 248c2ecf20Sopenharmony_civoid ocfs2_node_map_clear_bit(struct ocfs2_super *osb, 258c2ecf20Sopenharmony_ci struct ocfs2_node_map *map, 268c2ecf20Sopenharmony_ci int bit); 278c2ecf20Sopenharmony_ciint ocfs2_node_map_test_bit(struct ocfs2_super *osb, 288c2ecf20Sopenharmony_ci struct ocfs2_node_map *map, 298c2ecf20Sopenharmony_ci int bit); 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif /* OCFS2_HEARTBEAT_H */ 32