aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/midcomms.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-05-21 15:08:47 -0400
committerDavid Teigland <teigland@redhat.com>2021-05-25 09:22:20 -0500
commit5b2f981fde8b0dbf0bfa117bb4322342fcfb7174 (patch)
tree5761fdb1a0c6526fb675e392cb0f0e0e8c015136 /fs/dlm/midcomms.h
parent489d8e559c6596eb08e16447d9830bc39afbe54e (diff)
downloadlinux-5b2f981fde8b0dbf0bfa117bb4322342fcfb7174.tar.gz
fs: dlm: add midcomms debugfs functionality
This patch adds functionality to debug midcomms per connection state inside a comms directory which is similar like dlm configfs. Currently there exists the possibility to read out two attributes which is the send queue counter and the version of each midcomms node state. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.h')
-rw-r--r--fs/dlm/midcomms.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/dlm/midcomms.h b/fs/dlm/midcomms.h
index 1178b836315bc..579abc6929be2 100644
--- a/fs/dlm/midcomms.h
+++ b/fs/dlm/midcomms.h
@@ -12,6 +12,8 @@
#ifndef __MIDCOMMS_DOT_H__
#define __MIDCOMMS_DOT_H__
+struct midcomms_node;
+
int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len,
gfp_t allocation, char **ppc);
@@ -22,6 +24,10 @@ void dlm_midcomms_shutdown(void);
void dlm_midcomms_add_member(int nodeid);
void dlm_midcomms_remove_member(int nodeid);
void dlm_midcomms_unack_msg_resend(int nodeid);
+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);
#endif /* __MIDCOMMS_DOT_H__ */