SimGrid
3.21
Versatile Simulation of Distributed Systems
|
Functions | |
sg_host_t * | sg_host_list () |
Host datatype. More... | |
size_t | sg_host_count () |
Return the current number of hosts. More... | |
xbt_dynar_t | sg_hosts_as_dynar () |
Return a dynar containing all the hosts declared at a given point of time (including VMs) More... | |
size_t | sg_host_extension_create (void(*deleter)(void *)) |
void * | sg_host_extension_get (sg_host_t host, size_t rank) |
sg_host_t | sg_host_by_name (const char *name) |
Finds a sg_host_t using its name. More... | |
const char * | sg_host_get_name (sg_host_t host) |
Return the name of the #sg_host_t. More... | |
void * | sg_host_user (sg_host_t host) |
Return the user data of a #sg_host_t. More... | |
void | sg_host_user_set (sg_host_t host, void *userdata) |
Set the user data of a #sg_host_t. More... | |
void | sg_host_user_destroy (sg_host_t host) |
xbt_dict_t | sg_host_get_mounted_storage_list (sg_host_t host) |
Return the list of mount point names on an host. More... | |
xbt_dynar_t | sg_host_get_attached_storage_list (sg_host_t host) |
Return the list of storages attached to an host. More... | |
double | sg_host_speed (sg_host_t host) |
Return the speed of the processor (in flop/s), regardless of the current load on the machine. More... | |
double | sg_host_get_pstate_speed (sg_host_t host, int pstate_index) |
double | sg_host_get_available_speed (sg_host_t host) |
int | sg_host_core_count (sg_host_t host) |
sg_host_t | sg_host_self () |
Return the location on which a process is running. More... | |
const char * | sg_host_self_get_name () |
int | sg_host_get_nb_pstates (sg_host_t host) |
Return the total count of pstates defined for a host. More... | |
int | sg_host_get_pstate (sg_host_t host) |
void | sg_host_set_pstate (sg_host_t host, int pstate) |
void | sg_host_turn_on (sg_host_t host) |
void | sg_host_turn_off (sg_host_t host) |
int | sg_host_is_on (sg_host_t host) |
int | sg_host_is_off (sg_host_t host) |
xbt_dict_t | sg_host_get_properties (sg_host_t host) |
Returns a xbt_dict_t consisting of the list of properties assigned to this host. More... | |
const char * | sg_host_get_property_value (sg_host_t host, const char *name) |
Returns the value of a given host property. More... | |
void | sg_host_set_property_value (sg_host_t host, const char *name, const char *value) |
Change the value of a given host property. More... | |
void | sg_host_route (sg_host_t from, sg_host_t to, xbt_dynar_t links) |
double | sg_host_route_latency (sg_host_t from, sg_host_t to) |
double | sg_host_route_bandwidth (sg_host_t from, sg_host_t to) |
void | sg_host_dump (sg_host_t ws) |
void | sg_host_get_actor_list (sg_host_t host, xbt_dynar_t whereto) |
sg_host_t* sg_host_list | ( | ) |
Host datatype.
A location (or host) is any possible place where an actor may run. Thus it is represented as a physical resource with computing capabilities, some mailboxes to enable running actors to communicate with remote ones, and some private data that can be only accessed by local actors.
size_t sg_host_count | ( | ) |
Return the current number of hosts.
xbt_dynar_t sg_hosts_as_dynar | ( | ) |
Return a dynar containing all the hosts declared at a given point of time (including VMs)
size_t sg_host_extension_create | ( | void(*)(void *) | deleter | ) |
void* sg_host_extension_get | ( | sg_host_t | host, |
size_t | rank | ||
) |
sg_host_t sg_host_by_name | ( | const char * | name | ) |
Finds a sg_host_t using its name.
This is a name directory service
name | the name of an host. |
const char* sg_host_get_name | ( | sg_host_t | host | ) |
Return the name of the #sg_host_t.
void* sg_host_user | ( | sg_host_t | host | ) |
Return the user data of a #sg_host_t.
This functions returns the user data associated to host if it is possible.
void sg_host_user_set | ( | sg_host_t | host, |
void * | userdata | ||
) |
Set the user data of a #sg_host_t.
This functions attach data to host if it is possible.
void sg_host_user_destroy | ( | sg_host_t | host | ) |
xbt_dict_t sg_host_get_mounted_storage_list | ( | sg_host_t | host | ) |
Return the list of mount point names on an host.
host | a host |
xbt_dynar_t sg_host_get_attached_storage_list | ( | sg_host_t | host | ) |
Return the list of storages attached to an host.
host | a host |
double sg_host_speed | ( | sg_host_t | host | ) |
Return the speed of the processor (in flop/s), regardless of the current load on the machine.
double sg_host_get_pstate_speed | ( | sg_host_t | host, |
int | pstate_index | ||
) |
double sg_host_get_available_speed | ( | sg_host_t | host | ) |
int sg_host_core_count | ( | sg_host_t | host | ) |
sg_host_t sg_host_self | ( | ) |
Return the location on which a process is running.
const char* sg_host_self_get_name | ( | ) |
int sg_host_get_nb_pstates | ( | sg_host_t | host | ) |
Return the total count of pstates defined for a host.
See also Energy Plugin.
host | host to test |
int sg_host_get_pstate | ( | sg_host_t | host | ) |
void sg_host_set_pstate | ( | sg_host_t | host, |
int | pstate | ||
) |
void sg_host_turn_on | ( | sg_host_t | host | ) |
void sg_host_turn_off | ( | sg_host_t | host | ) |
int sg_host_is_on | ( | sg_host_t | host | ) |
int sg_host_is_off | ( | sg_host_t | host | ) |
xbt_dict_t sg_host_get_properties | ( | sg_host_t | host | ) |
Returns a xbt_dict_t consisting of the list of properties assigned to this host.
host | a host |
const char* sg_host_get_property_value | ( | sg_host_t | host, |
const char * | name | ||
) |
Returns the value of a given host property.
host | a host |
name | a property name |
void sg_host_set_property_value | ( | sg_host_t | host, |
const char * | name, | ||
const char * | value | ||
) |
Change the value of a given host property.
host | a host |
name | a property name |
value | what to change the property to |
void sg_host_route | ( | sg_host_t | from, |
sg_host_t | to, | ||
xbt_dynar_t | links | ||
) |
double sg_host_route_latency | ( | sg_host_t | from, |
sg_host_t | to | ||
) |
double sg_host_route_bandwidth | ( | sg_host_t | from, |
sg_host_t | to | ||
) |
void sg_host_dump | ( | sg_host_t | ws | ) |
void sg_host_get_actor_list | ( | sg_host_t | host, |
xbt_dynar_t | whereto | ||
) |