xref: /openbmc/linux/fs/dlm/midcomms.h (revision 26b32974)
1 /* SPDX-License-Identifier: GPL-2.0-only */
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 **
8 **
9 *******************************************************************************
10 ******************************************************************************/
11 
12 #ifndef __MIDCOMMS_DOT_H__
13 #define __MIDCOMMS_DOT_H__
14 
15 struct midcomms_node;
16 
17 int dlm_validate_incoming_buffer(int nodeid, unsigned char *buf, int len);
18 int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
19 struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len,
20 					     gfp_t allocation, char **ppc);
21 void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
22 				 int namelen);
23 void dlm_midcomms_version_wait(void);
24 int dlm_midcomms_close(int nodeid);
25 int dlm_midcomms_start(void);
26 void dlm_midcomms_stop(void);
27 void dlm_midcomms_init(void);
28 void dlm_midcomms_exit(void);
29 void dlm_midcomms_shutdown(void);
30 void dlm_midcomms_add_member(int nodeid);
31 void dlm_midcomms_remove_member(int nodeid);
32 void dlm_midcomms_unack_msg_resend(int nodeid);
33 const char *dlm_midcomms_state(struct midcomms_node *node);
34 unsigned long dlm_midcomms_flags(struct midcomms_node *node);
35 int dlm_midcomms_send_queue_cnt(struct midcomms_node *node);
36 uint32_t dlm_midcomms_version(struct midcomms_node *node);
37 int dlm_midcomms_rawmsg_send(struct midcomms_node *node, void *buf,
38 			     int buflen);
39 struct kmem_cache *dlm_midcomms_cache_create(void);
40 
41 #endif				/* __MIDCOMMS_DOT_H__ */
42 
43