2019-05-28 16:57:20 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2006-01-18 09:30:29 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*******************************************************************************
|
|
|
|
**
|
|
|
|
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
|
|
** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
|
|
|
|
**
|
|
|
|
**
|
|
|
|
*******************************************************************************
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __MIDCOMMS_DOT_H__
|
|
|
|
#define __MIDCOMMS_DOT_H__
|
|
|
|
|
2021-05-21 19:08:47 +00:00
|
|
|
struct midcomms_node;
|
|
|
|
|
2022-11-17 22:11:57 +00:00
|
|
|
int dlm_validate_incoming_buffer(int nodeid, unsigned char *buf, int len);
|
2020-09-24 14:31:26 +00:00
|
|
|
int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
|
2024-04-02 19:17:57 +00:00
|
|
|
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, char **ppc);
|
2022-10-27 20:45:15 +00:00
|
|
|
void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
|
|
|
|
int namelen);
|
2023-08-01 18:09:49 +00:00
|
|
|
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
|
2023-01-12 22:18:44 +00:00
|
|
|
void dlm_midcomms_version_wait(void);
|
2021-05-21 19:08:41 +00:00
|
|
|
int dlm_midcomms_close(int nodeid);
|
|
|
|
int dlm_midcomms_start(void);
|
2022-11-17 22:11:46 +00:00
|
|
|
void dlm_midcomms_stop(void);
|
|
|
|
void dlm_midcomms_init(void);
|
|
|
|
void dlm_midcomms_exit(void);
|
2021-05-21 19:08:41 +00:00
|
|
|
void dlm_midcomms_shutdown(void);
|
|
|
|
void dlm_midcomms_add_member(int nodeid);
|
|
|
|
void dlm_midcomms_remove_member(int nodeid);
|
2021-05-21 19:08:46 +00:00
|
|
|
void dlm_midcomms_unack_msg_resend(int nodeid);
|
2021-05-21 19:08:47 +00:00
|
|
|
const char *dlm_midcomms_state(struct midcomms_node *node);
|
|
|
|
unsigned long dlm_midcomms_flags(struct midcomms_node *node);
|
|
|
|
int dlm_midcomms_send_queue_cnt(struct midcomms_node *node);
|
|
|
|
uint32_t dlm_midcomms_version(struct midcomms_node *node);
|
2021-11-02 19:17:20 +00:00
|
|
|
int dlm_midcomms_rawmsg_send(struct midcomms_node *node, void *buf,
|
|
|
|
int buflen);
|
2021-11-30 19:47:18 +00:00
|
|
|
struct kmem_cache *dlm_midcomms_cache_create(void);
|
2006-01-18 09:30:29 +00:00
|
|
|
|
|
|
|
#endif /* __MIDCOMMS_DOT_H__ */
|
|
|
|
|