| /netbsd/src/external/gpl2/lvm2/dist/daemons/clvmd/ |
| D | clvmd.h | 61 struct local_client *pipe_client; 72 struct local_client *client; /* Actual (localsock) client */ 82 typedef int (*fd_callback_t) (struct local_client * fd, char *buf, int len, 84 struct local_client ** new_client); 87 struct local_client { struct 91 struct local_client *next; argument 110 extern int do_command(struct local_client *client, struct clvm_header *msg, argument 114 extern int do_pre_command(struct local_client *client); 115 extern int do_post_command(struct local_client *client); 116 extern void cmd_client_cleanup(struct local_client *client); [all …]
|
| D | tcp-comms.c | 63 static int read_from_tcpsock(struct local_client *fd, char *buf, int len, char *csid, 64 struct local_client **new_client); 109 struct local_client *client; in tcp_remove_client() 133 int alloc_client(int fd, const char *c_csid, struct local_client **new_client) in alloc_client() 135 struct local_client *client; in alloc_client() 142 client = malloc(sizeof(struct local_client)); in alloc_client() 149 memset(client, 0, sizeof(struct local_client)); in alloc_client() 192 int cluster_fd_gulm_callback(struct local_client *fd, char *buf, int len, const char *csid, in cluster_fd_gulm_callback() 193 struct local_client **new_client) in cluster_fd_gulm_callback() 261 static int read_from_tcpsock(struct local_client *client, char *buf, int len, char *csid, in read_from_tcpsock() [all …]
|
| D | clvmd.c | 74 static struct local_client local_client_head; 89 struct local_client *client; 123 static void send_local_reply(struct local_client *client, int status, 125 static void free_reply(struct local_client *client); 130 static int read_from_local_sock(struct local_client *thisfd); 132 struct local_client *client, 140 static struct local_client *find_client(int clientid); 143 static int check_all_clvmds_running(struct local_client *client); 144 static int local_rendezvous_callback(struct local_client *thisfd, char *buf, 146 struct local_client **new_client); [all …]
|
| D | clvmd-comms.h | 25 struct local_client; 36 int (*cluster_fd_callback) (struct local_client *fd, char *buf, int len, 38 struct local_client **new_client); 40 int (*cluster_do_node_callback) (struct local_client *client, 41 void (*callback) (struct local_client *,
|
| D | clvmd-gulm.c | 96 static int read_from_core_sock(struct local_client *client, char *buf, int len, const char *csid, 97 struct local_client **new_client); 98 static int read_from_lock_sock(struct local_client *client, char *buf, int len, const char *csid, 99 struct local_client **new_client); 109 struct local_client *client; in add_internal_client() 114 client = malloc(sizeof(struct local_client)); in add_internal_client() 121 memset(client, 0, sizeof(struct local_client)); in add_internal_client() 288 static int read_from_core_sock(struct local_client *client, char *buf, int len, const char *csid, in read_from_core_sock() 289 struct local_client **new_client) in read_from_core_sock() 298 static int read_from_lock_sock(struct local_client *client, char *buf, int len, const char *csid, in read_from_lock_sock() [all …]
|
| D | tcp-comms.h | 12 int cluster_fd_gulm_callback(struct local_client *fd, char *buf, int len, const char *csid, struct … 15 int gulm_connect_csid(const char *csid, struct local_client **newclient);
|
| D | clvmd-openais.c | 90 static struct local_client *cluster_client; 221 struct local_client *client; in add_internal_client() 225 client = malloc(sizeof(struct local_client)); in add_internal_client() 232 memset(client, 0, sizeof(struct local_client)); in add_internal_client() 326 static int lck_dispatch(struct local_client *client, char *buf, int len, in lck_dispatch() 327 const char *csid, struct local_client **new_client) in lck_dispatch() 463 static int _cluster_do_node_callback(struct local_client *master_client, in _cluster_do_node_callback() 464 void (*callback)(struct local_client *, in _cluster_do_node_callback() argument 655 static int _cluster_fd_callback(struct local_client *fd, char *buf, int len, in _cluster_fd_callback() 657 struct local_client **new_client) in _cluster_fd_callback()
|
| D | clvmd-command.c | 88 int do_command(struct local_client *client, struct clvm_header *msg, int msglen, in do_command() 194 static int lock_vg(struct local_client *client) in lock_vg() 256 int do_pre_command(struct local_client *client) in do_pre_command() 304 int do_post_command(struct local_client *client) in do_post_command() 339 void cmd_client_cleanup(struct local_client *client) in cmd_client_cleanup()
|
| D | clvmd-cman.c | 176 static int _cluster_do_node_callback(struct local_client *client, in _cluster_do_node_callback() argument 177 void (*callback) (struct local_client *, in _cluster_do_node_callback() 232 static struct local_client *cman_client; 233 static int _cluster_fd_callback(struct local_client *fd, char *buf, int len, in _cluster_fd_callback() 235 struct local_client **new_client) in _cluster_fd_callback()
|
| D | clvmd-corosync.c | 86 static struct local_client *cluster_client; 438 static int _cluster_do_node_callback(struct local_client *master_client, in _cluster_do_node_callback() 439 void (*callback)(struct local_client *, in _cluster_do_node_callback() argument 549 static int _cluster_fd_callback(struct local_client *fd, char *buf, int len, in _cluster_fd_callback() 551 struct local_client **new_client) in _cluster_fd_callback()
|
| D | clvmd-gulm.h | 12 extern int alloc_client(int fd, const char *csid, struct local_client **new_client);
|