2019-05-28 16:57:20 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2006-01-18 09:30:29 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*******************************************************************************
|
|
|
|
**
|
|
|
|
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
2009-05-07 15:54:16 +00:00
|
|
|
** Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
|
2006-01-18 09:30:29 +00:00
|
|
|
**
|
|
|
|
**
|
|
|
|
*******************************************************************************
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __LOWCOMMS_DOT_H__
|
|
|
|
#define __LOWCOMMS_DOT_H__
|
|
|
|
|
2020-11-03 01:04:17 +00:00
|
|
|
#define LOWCOMMS_MAX_TX_BUFFER_LEN 4096
|
|
|
|
|
2021-03-01 22:05:13 +00:00
|
|
|
/* switch to check if dlm is running */
|
|
|
|
extern int dlm_allow_conn;
|
|
|
|
|
2006-01-18 09:30:29 +00:00
|
|
|
int dlm_lowcomms_start(void);
|
2021-03-01 22:05:20 +00:00
|
|
|
void dlm_lowcomms_shutdown(void);
|
2006-01-18 09:30:29 +00:00
|
|
|
void dlm_lowcomms_stop(void);
|
2012-07-26 17:44:30 +00:00
|
|
|
void dlm_lowcomms_exit(void);
|
2006-04-28 14:50:41 +00:00
|
|
|
int dlm_lowcomms_close(int nodeid);
|
2021-05-21 19:08:42 +00:00
|
|
|
struct dlm_msg *dlm_lowcomms_new_msg(int nodeid, int len, gfp_t allocation,
|
|
|
|
char **ppc, void (*cb)(struct dlm_mhandle *mh),
|
|
|
|
struct dlm_mhandle *mh);
|
|
|
|
void dlm_lowcomms_commit_msg(struct dlm_msg *msg);
|
|
|
|
void dlm_lowcomms_put_msg(struct dlm_msg *msg);
|
2021-05-21 19:08:43 +00:00
|
|
|
int dlm_lowcomms_resend_msg(struct dlm_msg *msg);
|
2009-05-07 15:54:16 +00:00
|
|
|
int dlm_lowcomms_connect_node(int nodeid);
|
2021-03-01 22:05:09 +00:00
|
|
|
int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark);
|
2012-07-26 17:44:30 +00:00
|
|
|
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
|
2006-01-18 09:30:29 +00:00
|
|
|
|
|
|
|
#endif /* __LOWCOMMS_DOT_H__ */
|
|
|
|
|