1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef _SIMIX_NETWORK_PRIVATE_H
8 #define _SIMIX_NETWORK_PRIVATE_H
10 #include "simix/datatypes.h"
11 #include "smurf_private.h"
13 /** @brief Rendez-vous point datatype */
14 typedef struct s_smx_rvpoint {
20 void SIMIX_network_init(void);
21 void SIMIX_network_exit(void);
23 #ifdef HAVE_LATENCY_BOUND_TRACKING
24 XBT_PUBLIC(int) SIMIX_comm_is_latency_bounded(smx_action_t comm);
27 smx_rdv_t SIMIX_rdv_create(const char *name);
28 void SIMIX_rdv_destroy(smx_rdv_t rdv);
29 smx_rdv_t SIMIX_rdv_get_by_name(const char *name);
30 int SIMIX_rdv_comm_count_by_host(smx_rdv_t rdv, smx_host_t host);
31 smx_action_t SIMIX_rdv_get_head(smx_rdv_t rdv);
32 smx_action_t SIMIX_comm_isend(smx_process_t src_proc, smx_rdv_t rdv,
33 double task_size, double rate,
34 void *src_buff, size_t src_buff_size,
35 int (*)(void *, void *), void *data);
36 smx_action_t SIMIX_comm_irecv(smx_process_t dst_proc, smx_rdv_t rdv,
37 void *dst_buff, size_t *dst_buff_size,
38 int (*)(void *, void *), void *data);
39 void SIMIX_comm_destroy(smx_action_t action);
40 void SIMIX_comm_destroy_internal_actions(smx_action_t action);
41 void SIMIX_pre_comm_wait(smx_req_t req);
42 void SIMIX_pre_comm_waitany(smx_req_t req);
43 void SIMIX_post_comm(smx_action_t action);
44 void SIMIX_pre_comm_test(smx_req_t req);
45 void SIMIX_pre_comm_testany(smx_req_t req);
46 void SIMIX_comm_cancel(smx_action_t action);
47 double SIMIX_comm_get_remains(smx_action_t action);
48 e_smx_state_t SIMIX_comm_get_state(smx_action_t action);
49 void SIMIX_comm_suspend(smx_action_t action);
50 void SIMIX_comm_resume(smx_action_t action);
51 void* SIMIX_comm_get_src_data(smx_action_t action);
52 void* SIMIX_comm_get_dst_data(smx_action_t action);
53 void* SIMIX_comm_get_src_buff(smx_action_t action);
54 void* SIMIX_comm_get_dst_buff(smx_action_t action);
55 size_t SIMIX_comm_get_src_buff_size(smx_action_t action);
56 size_t SIMIX_comm_get_dst_buff_size(smx_action_t action);
57 smx_process_t SIMIX_comm_get_src_proc(smx_action_t action);
58 smx_process_t SIMIX_comm_get_dst_proc(smx_action_t action);