SimGrid  3.14.159
Versatile Simulation of Distributed Systems
msg_host.cpp File Reference
#include "simgrid/s4u/host.hpp"
#include "src/msg/msg_private.h"
#include <numeric>

Functions

 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY (msg)
 
msg_host_t __MSG_host_create (sg_host_t host)
 
msg_host_t MSG_host_by_name (const char *name)
 Finds a msg_host_t using its name. More...
 
msg_error_t MSG_host_set_data (msg_host_t host, void *data)
 Set the user data of a msg_host_t. More...
 
voidMSG_host_get_data (msg_host_t host)
 Return the user data of a msg_host_t. More...
 
msg_host_t MSG_host_self ()
 Return the location on which the current process is executed. More...
 
void MSG_host_on (msg_host_t host)
 Start the host if it is off. More...
 
void MSG_host_off (msg_host_t host)
 Stop the host if it is on. More...
 
void __MSG_host_priv_free (msg_host_priv_t priv)
 
int MSG_get_host_number ()
 Return the current number MSG hosts. More...
 
xbt_dynar_t MSG_hosts_as_dynar ()
 Return a dynar containing all the hosts declared at a given point of time. More...
 
double MSG_host_get_speed (msg_host_t host)
 Return the speed of the processor (in flop/s), regardless of the current load on the machine. More...
 
double MSG_get_host_speed (msg_host_t host)
 Return the speed of the processor (in flop/s), regardless of the current load on the machine. More...
 
int MSG_host_get_core_number (msg_host_t host)
 Return the number of cores. More...
 
xbt_swag_t MSG_host_get_process_list (msg_host_t host)
 Return the list of processes attached to an host. More...
 
const char * MSG_host_get_property_value (msg_host_t host, const char *name)
 Returns the value of a given host property. More...
 
xbt_dict_t MSG_host_get_properties (msg_host_t host)
 Returns a xbt_dict_t consisting of the list of properties assigned to this host. More...
 
void MSG_host_set_property_value (msg_host_t host, const char *name, char *value)
 Change the value of a given host property. More...
 
int MSG_host_is_on (msg_host_t host)
 Determine if a host is up and running. More...
 
int MSG_host_is_off (msg_host_t host)
 Determine if a host is currently off. More...
 
double MSG_host_get_power_peak_at (msg_host_t host, int pstate_index)
 Return the speed of the processor (in flop/s) at a given pstate. More...
 
double MSG_host_get_current_power_peak (msg_host_t host)
 Return the current speed of the processor (in flop/s) More...
 
int MSG_host_get_nb_pstates (msg_host_t host)
 Return the total count of pstates defined for a host. More...
 
xbt_dict_t MSG_host_get_mounted_storage_list (msg_host_t host)
 Return the list of mount point names on an host. More...
 
xbt_dynar_t MSG_host_get_attached_storage_list (msg_host_t host)
 Return the list of storages attached to an host. More...
 
xbt_dict_t MSG_host_get_storage_content (msg_host_t host)
 Return the content of mounted storages on an host. More...
 
int __MSG_host_get_file_descriptor_id (msg_host_t host)
 
void __MSG_host_release_file_descriptor_id (msg_host_t host, int id)
 

Variables

int sg_storage_max_file_descriptors = 1024
 

Function Documentation

§ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY()

XBT_LOG_EXTERNAL_DEFAULT_CATEGORY ( msg  )

§ __MSG_host_create()

msg_host_t __MSG_host_create ( sg_host_t  host)

§ __MSG_host_priv_free()

void __MSG_host_priv_free ( msg_host_priv_t  priv)

§ __MSG_host_get_file_descriptor_id()

int __MSG_host_get_file_descriptor_id ( msg_host_t  host)

§ __MSG_host_release_file_descriptor_id()

void __MSG_host_release_file_descriptor_id ( msg_host_t  host,
int  id 
)

Variable Documentation

§ sg_storage_max_file_descriptors

int sg_storage_max_file_descriptors = 1024