return simcall_BODY_host_get_core(host);
}
+/**
+ * \ingroup simix_host_management
+ * \brief Returns the list of processes attached to the host.
+ *
+ * \param host A SIMIX host
+ * \return the swag of attached processes
+ */
+xbt_swag_t simcall_host_get_process_list(smx_host_t host)
+{
+ return simcall_BODY_host_get_process_list(host);
+}
/**
/**
* \ingroup simix_host_management
- * \brief Returns one power peak of a host.
+ * \brief Returns one power peak (in flops/s) of a host at a given pstate
*
* \param host A SIMIX host
- * \return the current power peak value (double)
+ * \param pstate_index pstate to test
+ * \return the current power peak value (double) for pstate_index
*/
double simcall_host_get_power_peak_at(smx_host_t host, int pstate_index)
{
* \brief Sets a new power peak for a host.
*
* \param host A SIMIX host
- * \param pstate_index The state index to which the CPU power will be set
+ * \param pstate_index The pstate to which the CPU power will be set
* \return void
*/
void simcall_host_set_power_peak_at(smx_host_t host, int pstate_index)
/**
* \ingroup simix_host_management
- * \brief Returns the total energy consumed by the host
+ * \brief Returns the total energy consumed by the host (in Joules)
*
* \param host A SIMIX host
* \return the energy consumed by the host (double)
return simcall_BODY_file_get_size(fd);
}
+/**
+ * \ingroup simix_file_management
+ *
+ */
+xbt_dynar_t simcall_file_get_info(smx_file_t fd)
+{
+ return simcall_BODY_file_get_info(fd);
+}
+
+/**
+ * \ingroup simix_storage_management
+ * \brief Return the free space size on a given storage element.
+ * \param storage name
+ * \return Return the free space size on a given storage element (as size_t)
+ */
+size_t simcall_storage_get_free_size (const char* name){
+ return simcall_BODY_storage_get_free_size(name);
+}
+
+/**
+ * \ingroup simix_storage_management
+ * \brief Return the used space size on a given storage element.
+ * \param storage name
+ * \return Return the used space size on a given storage element (as size_t)
+ */
+size_t simcall_storage_get_used_size (const char* name){
+ return simcall_BODY_storage_get_used_size(name);
+}
+
+/**
+ * \ingroup simix_host_management
+ * \brief Return the list of storages mounted on an host.
+ * \param host A SIMIX host
+ * \return a dynar containing all storages mounted on the host
+ */
+xbt_dynar_t simcall_host_get_storage_list(smx_host_t host)
+{
+ return simcall_BODY_host_get_storage_list(host);
+}
+
+
#ifdef HAVE_MC
void *simcall_mc_snapshot(void)