blob: 82bcd96619228dca94dbbd1659975d620955b884 [file] [log] [blame]
Thomas Gleixner2522fe42019-05-28 09:57:20 -07001/* SPDX-License-Identifier: GPL-2.0-only */
David Teiglande7fd4172006-01-18 09:30:29 +00002/******************************************************************************
3*******************************************************************************
4**
5** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
6** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
7**
David Teiglande7fd4172006-01-18 09:30:29 +00008**
9*******************************************************************************
10******************************************************************************/
11
12#ifndef __MIDCOMMS_DOT_H__
13#define __MIDCOMMS_DOT_H__
14
Alexander Aring5b2f9812021-05-21 15:08:47 -040015struct midcomms_node;
16
Alexander Aring4798cbb2020-09-24 10:31:26 -040017int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
Alexander Aringa070a912021-05-21 15:08:41 -040018struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len,
19 gfp_t allocation, char **ppc);
20void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh);
21int dlm_midcomms_close(int nodeid);
22int dlm_midcomms_start(void);
23void dlm_midcomms_shutdown(void);
24void dlm_midcomms_add_member(int nodeid);
25void dlm_midcomms_remove_member(int nodeid);
Alexander Aring489d8e52021-05-21 15:08:46 -040026void dlm_midcomms_unack_msg_resend(int nodeid);
Alexander Aring5b2f9812021-05-21 15:08:47 -040027const char *dlm_midcomms_state(struct midcomms_node *node);
28unsigned long dlm_midcomms_flags(struct midcomms_node *node);
29int dlm_midcomms_send_queue_cnt(struct midcomms_node *node);
30uint32_t dlm_midcomms_version(struct midcomms_node *node);
Alexander Aring9af5b8f2021-11-02 15:17:20 -040031int dlm_midcomms_rawmsg_send(struct midcomms_node *node, void *buf,
32 int buflen);
Alexander Aring6c547f22021-11-30 14:47:18 -050033struct kmem_cache *dlm_midcomms_cache_create(void);
David Teiglande7fd4172006-01-18 09:30:29 +000034
35#endif /* __MIDCOMMS_DOT_H__ */
36