Thomas Gleixner | 2522fe4 | 2019-05-28 09:57:20 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
David Teigland | e7fd417 | 2006-01-18 09:30:29 +0000 | [diff] [blame] | 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 | ** |
David Teigland | e7fd417 | 2006-01-18 09:30:29 +0000 | [diff] [blame] | 8 | ** |
| 9 | ******************************************************************************* |
| 10 | ******************************************************************************/ |
| 11 | |
| 12 | #ifndef __MIDCOMMS_DOT_H__ |
| 13 | #define __MIDCOMMS_DOT_H__ |
| 14 | |
Alexander Aring | 5b2f981 | 2021-05-21 15:08:47 -0400 | [diff] [blame] | 15 | struct midcomms_node; |
| 16 | |
Alexander Aring | 4798cbb | 2020-09-24 10:31:26 -0400 | [diff] [blame] | 17 | int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen); |
Alexander Aring | a070a91 | 2021-05-21 15:08:41 -0400 | [diff] [blame] | 18 | struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, |
| 19 | gfp_t allocation, char **ppc); |
| 20 | void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh); |
| 21 | int dlm_midcomms_close(int nodeid); |
| 22 | int dlm_midcomms_start(void); |
| 23 | void dlm_midcomms_shutdown(void); |
| 24 | void dlm_midcomms_add_member(int nodeid); |
| 25 | void dlm_midcomms_remove_member(int nodeid); |
Alexander Aring | 489d8e5 | 2021-05-21 15:08:46 -0400 | [diff] [blame] | 26 | void dlm_midcomms_unack_msg_resend(int nodeid); |
Alexander Aring | 5b2f981 | 2021-05-21 15:08:47 -0400 | [diff] [blame] | 27 | const char *dlm_midcomms_state(struct midcomms_node *node); |
| 28 | unsigned long dlm_midcomms_flags(struct midcomms_node *node); |
| 29 | int dlm_midcomms_send_queue_cnt(struct midcomms_node *node); |
| 30 | uint32_t dlm_midcomms_version(struct midcomms_node *node); |
Alexander Aring | 9af5b8f | 2021-11-02 15:17:20 -0400 | [diff] [blame] | 31 | int dlm_midcomms_rawmsg_send(struct midcomms_node *node, void *buf, |
| 32 | int buflen); |
Alexander Aring | 6c547f2 | 2021-11-30 14:47:18 -0500 | [diff] [blame] | 33 | struct kmem_cache *dlm_midcomms_cache_create(void); |
David Teigland | e7fd417 | 2006-01-18 09:30:29 +0000 | [diff] [blame] | 34 | |
| 35 | #endif /* __MIDCOMMS_DOT_H__ */ |
| 36 | |