MySQL 8.0.29
Source Code Documentation
xcom_cfg.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2021, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef XCOM_CFG_H
24#define XCOM_CFG_H
25
26#include <stdint.h>
27#include <stdlib.h>
29#include "xdr_gen/xcom_vp.h"
30
31typedef struct cfg_app_xcom {
32 /*
33 The number of spin loops the XCom thread does before
34 blocking on the poll system call.
35 */
36 unsigned int m_poll_spin_loops;
37
38 /*
39 cache size limit and interval
40 */
41 uint64_t m_cache_limit;
42
43 /*
44 The (address, incarnation) pair that uniquely identifies this XCom instance.
45 */
46 node_address *identity;
47
48 /**
49 This is a network namespace manager to deal with network namespace
50 operations
51 */
54
55/*
56 The application will set this pointer before engaging
57 xcom
58*/
60
63
64node_address *cfg_app_xcom_get_identity();
65
67
68/*
69 Takes ownership of @c identity.
70
71 @param identity The unique identity of this XCom instance. Must not be null.
72*/
73void cfg_app_xcom_set_identity(node_address *identity);
74
75#endif
Class that provides Network Namespace services.
Definition: network_provider.h:213
Definition: xcom_cfg.h:31
unsigned int m_poll_spin_loops
Definition: xcom_cfg.h:36
Network_namespace_manager * network_ns_manager
This is a network namespace manager to deal with network namespace operations.
Definition: xcom_cfg.h:52
node_address * identity
Definition: xcom_cfg.h:46
uint64_t m_cache_limit
Definition: xcom_cfg.h:41
void init_cfg_app_xcom()
Definition: xcom_cfg.cc:33
Network_namespace_manager * cfg_app_get_network_namespace_manager()
Definition: xcom_cfg.cc:51
cfg_app_xcom_st * the_app_xcom_cfg
Definition: xcom_cfg.cc:31
node_address * cfg_app_xcom_get_identity()
Definition: xcom_cfg.cc:57
struct cfg_app_xcom cfg_app_xcom_st
void deinit_cfg_app_xcom()
Definition: xcom_cfg.cc:42
void cfg_app_xcom_set_identity(node_address *identity)
Definition: xcom_cfg.cc:63