evs.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. /*
  2. * Copyright (c) 2004-2006 MontaVista Software, Inc.
  3. * Copyright (c) 2006-2009 Red Hat, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. * Author: Steven Dake (sdake@redhat.com)
  8. *
  9. * This software licensed under BSD license, the text of which follows:
  10. *
  11. * Redistribution and use in source and binary forms, with or without
  12. * modification, are permitted provided that the following conditions are met:
  13. *
  14. * - Redistributions of source code must retain the above copyright notice,
  15. * this list of conditions and the following disclaimer.
  16. * - Redistributions in binary form must reproduce the above copyright notice,
  17. * this list of conditions and the following disclaimer in the documentation
  18. * and/or other materials provided with the distribution.
  19. * - Neither the name of the MontaVista Software, Inc. nor the names of its
  20. * contributors may be used to endorse or promote products derived from this
  21. * software without specific prior written permission.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  24. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  27. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  28. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  31. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  33. * THE POSSIBILITY OF SUCH DAMAGE.
  34. */
  35. #include <sys/types.h>
  36. #include <sys/socket.h>
  37. #include <sys/un.h>
  38. #include <sys/ioctl.h>
  39. #include <netinet/in.h>
  40. #include <sys/uio.h>
  41. #include <unistd.h>
  42. #include <fcntl.h>
  43. #include <stdlib.h>
  44. #include <stdio.h>
  45. #include <errno.h>
  46. #include <signal.h>
  47. #include <time.h>
  48. #include <netinet/in.h>
  49. #include <arpa/inet.h>
  50. #include <corosync/swab.h>
  51. #include <corosync/corotypes.h>
  52. #include <corosync/ipc_gen.h>
  53. #include <corosync/lcr/lcr_comp.h>
  54. #include <corosync/engine/coroapi.h>
  55. #include <corosync/ipc_evs.h>
  56. #include <corosync/list.h>
  57. #include <corosync/engine/logsys.h>
  58. LOGSYS_DECLARE_SUBSYS ("EVS", LOG_INFO);
  59. enum evs_exec_message_req_types {
  60. MESSAGE_REQ_EXEC_EVS_MCAST = 0
  61. };
  62. /*
  63. * Service Interfaces required by service_message_handler struct
  64. */
  65. static int evs_exec_init_fn (
  66. struct corosync_api_v1 *corosync_api);
  67. static void evs_confchg_fn (
  68. enum totem_configuration_type configuration_type,
  69. unsigned int *member_list, int member_list_entries,
  70. unsigned int *left_list, int left_list_entries,
  71. unsigned int *joined_list, int joined_list_entries,
  72. struct memb_ring_id *ring_id);
  73. static void message_handler_req_exec_mcast (void *msg, unsigned int nodeid);
  74. static void req_exec_mcast_endian_convert (void *msg);
  75. static void message_handler_req_evs_join (void *conn, void *msg);
  76. static void message_handler_req_evs_leave (void *conn, void *msg);
  77. static void message_handler_req_evs_mcast_joined (void *conn, void *msg);
  78. static void message_handler_req_evs_mcast_groups (void *conn, void *msg);
  79. static void message_handler_req_evs_membership_get (void *conn, void *msg);
  80. static int evs_lib_init_fn (void *conn);
  81. static int evs_lib_exit_fn (void *conn);
  82. struct evs_pd {
  83. struct evs_group *groups;
  84. int group_entries;
  85. struct list_head list;
  86. void *conn;
  87. };
  88. static struct corosync_api_v1 *api;
  89. static struct corosync_lib_handler evs_lib_engine[] =
  90. {
  91. { /* 0 */
  92. .lib_handler_fn = message_handler_req_evs_join,
  93. .response_size = sizeof (struct res_lib_evs_join),
  94. .response_id = MESSAGE_RES_EVS_JOIN,
  95. .flow_control = CS_LIB_FLOW_CONTROL_NOT_REQUIRED
  96. },
  97. { /* 1 */
  98. .lib_handler_fn = message_handler_req_evs_leave,
  99. .response_size = sizeof (struct res_lib_evs_leave),
  100. .response_id = MESSAGE_RES_EVS_LEAVE,
  101. .flow_control = CS_LIB_FLOW_CONTROL_NOT_REQUIRED
  102. },
  103. { /* 2 */
  104. .lib_handler_fn = message_handler_req_evs_mcast_joined,
  105. .response_size = sizeof (struct res_lib_evs_mcast_joined),
  106. .response_id = MESSAGE_RES_EVS_MCAST_JOINED,
  107. .flow_control = CS_LIB_FLOW_CONTROL_REQUIRED
  108. },
  109. { /* 3 */
  110. .lib_handler_fn = message_handler_req_evs_mcast_groups,
  111. .response_size = sizeof (struct res_lib_evs_mcast_groups),
  112. .response_id = MESSAGE_RES_EVS_MCAST_GROUPS,
  113. .flow_control = CS_LIB_FLOW_CONTROL_REQUIRED
  114. },
  115. { /* 4 */
  116. .lib_handler_fn = message_handler_req_evs_membership_get,
  117. .response_size = sizeof (struct res_lib_evs_membership_get),
  118. .response_id = MESSAGE_RES_EVS_MEMBERSHIP_GET,
  119. .flow_control = CS_LIB_FLOW_CONTROL_NOT_REQUIRED
  120. }
  121. };
  122. static struct corosync_exec_handler evs_exec_engine[] =
  123. {
  124. {
  125. .exec_handler_fn = message_handler_req_exec_mcast,
  126. .exec_endian_convert_fn = req_exec_mcast_endian_convert
  127. }
  128. };
  129. struct corosync_service_engine evs_service_engine = {
  130. .name = "corosync extended virtual synchrony service",
  131. .id = EVS_SERVICE,
  132. .private_data_size = sizeof (struct evs_pd),
  133. .flow_control = CS_LIB_FLOW_CONTROL_REQUIRED,
  134. .lib_init_fn = evs_lib_init_fn,
  135. .lib_exit_fn = evs_lib_exit_fn,
  136. .lib_engine = evs_lib_engine,
  137. .lib_engine_count = sizeof (evs_lib_engine) / sizeof (struct corosync_lib_handler),
  138. .exec_engine = evs_exec_engine,
  139. .exec_engine_count = sizeof (evs_exec_engine) / sizeof (struct corosync_exec_handler),
  140. .confchg_fn = evs_confchg_fn,
  141. .exec_init_fn = evs_exec_init_fn,
  142. .exec_dump_fn = NULL
  143. };
  144. static DECLARE_LIST_INIT (confchg_notify);
  145. /*
  146. * Dynamic loading descriptor
  147. */
  148. static struct corosync_service_engine *evs_get_service_engine_ver0 (void);
  149. static struct corosync_service_engine_iface_ver0 evs_service_engine_iface = {
  150. .corosync_get_service_engine_ver0 = evs_get_service_engine_ver0
  151. };
  152. static struct lcr_iface corosync_evs_ver0[1] = {
  153. {
  154. .name = "corosync_evs",
  155. .version = 0,
  156. .versions_replace = 0,
  157. .versions_replace_count = 0,
  158. .dependencies = 0,
  159. .dependency_count = 0,
  160. .constructor = NULL,
  161. .destructor = NULL,
  162. .interfaces = NULL,
  163. }
  164. };
  165. static struct lcr_comp evs_comp_ver0 = {
  166. .iface_count = 1,
  167. .ifaces = corosync_evs_ver0
  168. };
  169. static struct corosync_service_engine *evs_get_service_engine_ver0 (void)
  170. {
  171. return (&evs_service_engine);
  172. }
  173. __attribute__ ((constructor)) static void evs_comp_register (void) {
  174. lcr_interfaces_set (&corosync_evs_ver0[0], &evs_service_engine_iface);
  175. lcr_component_register (&evs_comp_ver0);
  176. }
  177. static int evs_exec_init_fn (
  178. struct corosync_api_v1 *corosync_api)
  179. {
  180. api = corosync_api;
  181. return 0;
  182. }
  183. struct res_evs_confchg_callback res_evs_confchg_callback;
  184. static void evs_confchg_fn (
  185. enum totem_configuration_type configuration_type,
  186. unsigned int *member_list, int member_list_entries,
  187. unsigned int *left_list, int left_list_entries,
  188. unsigned int *joined_list, int joined_list_entries,
  189. struct memb_ring_id *ring_id)
  190. {
  191. struct list_head *list;
  192. struct evs_pd *evs_pd;
  193. /*
  194. * Build configuration change message
  195. */
  196. res_evs_confchg_callback.header.size = sizeof (struct res_evs_confchg_callback);
  197. res_evs_confchg_callback.header.id = MESSAGE_RES_EVS_CONFCHG_CALLBACK;
  198. res_evs_confchg_callback.header.error = CS_OK;
  199. memcpy (res_evs_confchg_callback.member_list,
  200. member_list, member_list_entries * sizeof(*member_list));
  201. res_evs_confchg_callback.member_list_entries = member_list_entries;
  202. memcpy (res_evs_confchg_callback.left_list,
  203. left_list, left_list_entries * sizeof(*left_list));
  204. res_evs_confchg_callback.left_list_entries = left_list_entries;
  205. memcpy (res_evs_confchg_callback.joined_list,
  206. joined_list, joined_list_entries * sizeof(*joined_list));
  207. res_evs_confchg_callback.joined_list_entries = joined_list_entries;
  208. /*
  209. * Send configuration change message to every EVS library user
  210. */
  211. for (list = confchg_notify.next; list != &confchg_notify; list = list->next) {
  212. evs_pd = list_entry (list, struct evs_pd, list);
  213. api->ipc_response_send (evs_pd->conn,
  214. &res_evs_confchg_callback,
  215. sizeof (res_evs_confchg_callback));
  216. }
  217. }
  218. static int evs_lib_init_fn (void *conn)
  219. {
  220. struct evs_pd *evs_pd = (struct evs_pd *)api->ipc_private_data_get (conn);
  221. log_printf (LOG_LEVEL_DEBUG, "Got request to initalize evs service.\n");
  222. evs_pd->groups = NULL;
  223. evs_pd->group_entries = 0;
  224. evs_pd->conn = conn;
  225. list_init (&evs_pd->list);
  226. list_add (&evs_pd->list, &confchg_notify);
  227. api->ipc_response_send (conn, &res_evs_confchg_callback,
  228. sizeof (res_evs_confchg_callback));
  229. return (0);
  230. }
  231. static int evs_lib_exit_fn (void *conn)
  232. {
  233. struct evs_pd *evs_pd = (struct evs_pd *)api->ipc_private_data_get (conn);
  234. list_del (&evs_pd->list);
  235. return (0);
  236. }
  237. static void message_handler_req_evs_join (void *conn, void *msg)
  238. {
  239. cs_error_t error = CS_OK;
  240. struct req_lib_evs_join *req_lib_evs_join = (struct req_lib_evs_join *)msg;
  241. struct res_lib_evs_join res_lib_evs_join;
  242. void *addr;
  243. struct evs_pd *evs_pd = (struct evs_pd *)api->ipc_private_data_get (conn);
  244. if (req_lib_evs_join->group_entries > 50) {
  245. error = CS_ERR_TOO_MANY_GROUPS;
  246. goto exit_error;
  247. }
  248. addr = realloc (evs_pd->groups, sizeof (struct evs_group) *
  249. (evs_pd->group_entries + req_lib_evs_join->group_entries));
  250. if (addr == NULL) {
  251. error = CS_ERR_NO_MEMORY;
  252. goto exit_error;
  253. }
  254. evs_pd->groups = addr;
  255. memcpy (&evs_pd->groups[evs_pd->group_entries],
  256. req_lib_evs_join->groups,
  257. sizeof (struct evs_group) * req_lib_evs_join->group_entries);
  258. evs_pd->group_entries += req_lib_evs_join->group_entries;
  259. exit_error:
  260. res_lib_evs_join.header.size = sizeof (struct res_lib_evs_join);
  261. res_lib_evs_join.header.id = MESSAGE_RES_EVS_JOIN;
  262. res_lib_evs_join.header.error = error;
  263. api->ipc_response_send (conn, &res_lib_evs_join,
  264. sizeof (struct res_lib_evs_join));
  265. }
  266. static void message_handler_req_evs_leave (void *conn, void *msg)
  267. {
  268. struct req_lib_evs_leave *req_lib_evs_leave = (struct req_lib_evs_leave *)msg;
  269. struct res_lib_evs_leave res_lib_evs_leave;
  270. cs_error_t error = CS_OK;
  271. int error_index;
  272. int i, j;
  273. int found;
  274. struct evs_pd *evs_pd = (struct evs_pd *)api->ipc_private_data_get (conn);
  275. for (i = 0; i < req_lib_evs_leave->group_entries; i++) {
  276. found = 0;
  277. for (j = 0; j < evs_pd->group_entries;) {
  278. if (memcmp (&req_lib_evs_leave->groups[i],
  279. &evs_pd->groups[j], sizeof (struct evs_group)) == 0) {
  280. /*
  281. * Delete entry
  282. */
  283. memmove (&evs_pd->groups[j], &evs_pd->groups[j + 1],
  284. (evs_pd->group_entries - j - 1) * sizeof (struct evs_group));
  285. evs_pd->group_entries -= 1;
  286. found = 1;
  287. break;
  288. } else {
  289. j++;
  290. }
  291. }
  292. if (found == 0) {
  293. error = CS_ERR_NOT_EXIST;
  294. error_index = i;
  295. break;
  296. }
  297. }
  298. res_lib_evs_leave.header.size = sizeof (struct res_lib_evs_leave);
  299. res_lib_evs_leave.header.id = MESSAGE_RES_EVS_LEAVE;
  300. res_lib_evs_leave.header.error = error;
  301. api->ipc_response_send (conn, &res_lib_evs_leave,
  302. sizeof (struct res_lib_evs_leave));
  303. }
  304. static void message_handler_req_evs_mcast_joined (void *conn, void *msg)
  305. {
  306. cs_error_t error = CS_ERR_TRY_AGAIN;
  307. struct req_lib_evs_mcast_joined *req_lib_evs_mcast_joined = (struct req_lib_evs_mcast_joined *)msg;
  308. struct res_lib_evs_mcast_joined res_lib_evs_mcast_joined;
  309. struct iovec req_exec_evs_mcast_iovec[3];
  310. struct req_exec_evs_mcast req_exec_evs_mcast;
  311. int res;
  312. struct evs_pd *evs_pd = (struct evs_pd *)api->ipc_private_data_get (conn);
  313. req_exec_evs_mcast.header.size = sizeof (struct req_exec_evs_mcast) +
  314. evs_pd->group_entries * sizeof (struct evs_group) +
  315. req_lib_evs_mcast_joined->msg_len;
  316. req_exec_evs_mcast.header.id =
  317. SERVICE_ID_MAKE (EVS_SERVICE, MESSAGE_REQ_EXEC_EVS_MCAST);
  318. req_exec_evs_mcast.msg_len = req_lib_evs_mcast_joined->msg_len;
  319. req_exec_evs_mcast.group_entries = evs_pd->group_entries;
  320. req_exec_evs_mcast_iovec[0].iov_base = (char *)&req_exec_evs_mcast;
  321. req_exec_evs_mcast_iovec[0].iov_len = sizeof (req_exec_evs_mcast);
  322. req_exec_evs_mcast_iovec[1].iov_base = (char *)evs_pd->groups;
  323. req_exec_evs_mcast_iovec[1].iov_len = evs_pd->group_entries * sizeof (struct evs_group);
  324. req_exec_evs_mcast_iovec[2].iov_base = (char *)&req_lib_evs_mcast_joined->msg;
  325. req_exec_evs_mcast_iovec[2].iov_len = req_lib_evs_mcast_joined->msg_len;
  326. res = api->totem_mcast (req_exec_evs_mcast_iovec, 3, TOTEM_AGREED);
  327. // TODO
  328. if (res == 0) {
  329. error = CS_OK;
  330. }
  331. res_lib_evs_mcast_joined.header.size = sizeof (struct res_lib_evs_mcast_joined);
  332. res_lib_evs_mcast_joined.header.id = MESSAGE_RES_EVS_MCAST_JOINED;
  333. res_lib_evs_mcast_joined.header.error = error;
  334. api->ipc_response_send (conn, &res_lib_evs_mcast_joined,
  335. sizeof (struct res_lib_evs_mcast_joined));
  336. }
  337. static void message_handler_req_evs_mcast_groups (void *conn, void *msg)
  338. {
  339. cs_error_t error = CS_ERR_TRY_AGAIN;
  340. struct req_lib_evs_mcast_groups *req_lib_evs_mcast_groups = (struct req_lib_evs_mcast_groups *)msg;
  341. struct res_lib_evs_mcast_groups res_lib_evs_mcast_groups;
  342. struct iovec req_exec_evs_mcast_iovec[3];
  343. struct req_exec_evs_mcast req_exec_evs_mcast;
  344. char *msg_addr;
  345. int res;
  346. req_exec_evs_mcast.header.size = sizeof (struct req_exec_evs_mcast) +
  347. sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries +
  348. req_lib_evs_mcast_groups->msg_len;
  349. req_exec_evs_mcast.header.id =
  350. SERVICE_ID_MAKE (EVS_SERVICE, MESSAGE_REQ_EXEC_EVS_MCAST);
  351. req_exec_evs_mcast.msg_len = req_lib_evs_mcast_groups->msg_len;
  352. req_exec_evs_mcast.group_entries = req_lib_evs_mcast_groups->group_entries;
  353. msg_addr = (char *)req_lib_evs_mcast_groups +
  354. sizeof (struct req_lib_evs_mcast_groups) +
  355. (sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries);
  356. req_exec_evs_mcast_iovec[0].iov_base = (char *)&req_exec_evs_mcast;
  357. req_exec_evs_mcast_iovec[0].iov_len = sizeof (req_exec_evs_mcast);
  358. req_exec_evs_mcast_iovec[1].iov_base = (char *)&req_lib_evs_mcast_groups->groups;
  359. req_exec_evs_mcast_iovec[1].iov_len = sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries;
  360. req_exec_evs_mcast_iovec[2].iov_base = msg_addr;
  361. req_exec_evs_mcast_iovec[2].iov_len = req_lib_evs_mcast_groups->msg_len;
  362. res = api->totem_mcast (req_exec_evs_mcast_iovec, 3, TOTEM_AGREED);
  363. if (res == 0) {
  364. error = CS_OK;
  365. }
  366. res_lib_evs_mcast_groups.header.size = sizeof (struct res_lib_evs_mcast_groups);
  367. res_lib_evs_mcast_groups.header.id = MESSAGE_RES_EVS_MCAST_GROUPS;
  368. res_lib_evs_mcast_groups.header.error = error;
  369. api->ipc_response_send (conn, &res_lib_evs_mcast_groups,
  370. sizeof (struct res_lib_evs_mcast_groups));
  371. }
  372. static void message_handler_req_evs_membership_get (void *conn, void *msg)
  373. {
  374. struct res_lib_evs_membership_get res_lib_evs_membership_get;
  375. res_lib_evs_membership_get.header.size = sizeof (struct res_lib_evs_membership_get);
  376. res_lib_evs_membership_get.header.id = MESSAGE_RES_EVS_MEMBERSHIP_GET;
  377. res_lib_evs_membership_get.header.error = CS_OK;
  378. res_lib_evs_membership_get.local_nodeid = api->totem_nodeid_get ();
  379. memcpy (&res_lib_evs_membership_get.member_list,
  380. &res_evs_confchg_callback.member_list,
  381. sizeof (res_lib_evs_membership_get.member_list));
  382. res_lib_evs_membership_get.member_list_entries =
  383. res_evs_confchg_callback.member_list_entries;
  384. api->ipc_response_send (conn, &res_lib_evs_membership_get,
  385. sizeof (struct res_lib_evs_membership_get));
  386. }
  387. static void req_exec_mcast_endian_convert (void *msg)
  388. {
  389. struct req_exec_evs_mcast *req_exec_evs_mcast =
  390. (struct req_exec_evs_mcast *)msg;
  391. req_exec_evs_mcast->group_entries =
  392. swab32 (req_exec_evs_mcast->group_entries);
  393. req_exec_evs_mcast->msg_len = swab32 (req_exec_evs_mcast->msg_len);
  394. }
  395. static void message_handler_req_exec_mcast (
  396. void *msg,
  397. unsigned int nodeid)
  398. {
  399. struct req_exec_evs_mcast *req_exec_evs_mcast = (struct req_exec_evs_mcast *)msg;
  400. struct res_evs_deliver_callback res_evs_deliver_callback;
  401. char *msg_addr;
  402. struct list_head *list;
  403. int found = 0;
  404. int i, j;
  405. struct evs_pd *evs_pd;
  406. struct iovec iov[2];
  407. res_evs_deliver_callback.header.size = sizeof (struct res_evs_deliver_callback) +
  408. req_exec_evs_mcast->msg_len;
  409. res_evs_deliver_callback.header.id = MESSAGE_RES_EVS_DELIVER_CALLBACK;
  410. res_evs_deliver_callback.header.error = CS_OK;
  411. res_evs_deliver_callback.msglen = req_exec_evs_mcast->msg_len;
  412. msg_addr = (char *)req_exec_evs_mcast + sizeof (struct req_exec_evs_mcast) +
  413. (sizeof (struct evs_group) * req_exec_evs_mcast->group_entries);
  414. for (list = confchg_notify.next; list != &confchg_notify; list = list->next) {
  415. found = 0;
  416. evs_pd = list_entry (list, struct evs_pd, list);
  417. for (i = 0; i < evs_pd->group_entries; i++) {
  418. for (j = 0; j < req_exec_evs_mcast->group_entries; j++) {
  419. if (memcmp (&evs_pd->groups[i], &req_exec_evs_mcast->groups[j],
  420. sizeof (struct evs_group)) == 0) {
  421. found = 1;
  422. break;
  423. }
  424. }
  425. if (found) {
  426. break;
  427. }
  428. }
  429. if (found) {
  430. res_evs_deliver_callback.local_nodeid = nodeid;
  431. iov[0].iov_base = &res_evs_deliver_callback;
  432. iov[0].iov_len = sizeof (struct res_evs_deliver_callback);
  433. iov[1].iov_base = msg_addr;
  434. iov[1].iov_len = req_exec_evs_mcast->msg_len;
  435. api->ipc_dispatch_iov_send (
  436. evs_pd->conn,
  437. iov,
  438. 2);
  439. }
  440. }
  441. }