Merge patch series "Some style cleanups for recent extension additions"
[linux-block.git] / fs / dlm / midcomms.h
CommitLineData
2522fe45 1/* SPDX-License-Identifier: GPL-2.0-only */
e7fd4179
DT
2/******************************************************************************
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**
e7fd4179
DT
8**
9*******************************************************************************
10******************************************************************************/
11
12#ifndef __MIDCOMMS_DOT_H__
13#define __MIDCOMMS_DOT_H__
14
5b2f981f
AA
15struct midcomms_node;
16
4798cbbf 17int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
a070a91c
AA
18struct 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);
489d8e55 26void dlm_midcomms_unack_msg_resend(int nodeid);
5b2f981f
AA
27const 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);
9af5b8f0
AA
31int dlm_midcomms_rawmsg_send(struct midcomms_node *node, void *buf,
32 int buflen);
6c547f26 33struct kmem_cache *dlm_midcomms_cache_create(void);
e7fd4179
DT
34
35#endif /* __MIDCOMMS_DOT_H__ */
36