/** \ingroup m_host_management
- * \brief Return the number of core.
+ * \brief Return the number of cores.
+ *
+ * \param host a host
+ * \return the number of cores
*/
-int MSG_host_get_core_number(msg_host_t h)
+int MSG_host_get_core_number(msg_host_t host)
{
- xbt_assert((h != NULL), "Invalid parameters");
+ xbt_assert((host != NULL), "Invalid parameters");
+
+ return (simcall_host_get_core(host));
+}
+
+/** \ingroup m_host_management
+ * \brief Return the list of processes attached to an host.
+ *
+ * \param host a host
+ * \return a swag with the attached processes
+ */
+xbt_swag_t MSG_host_get_process_list(msg_host_t host)
+{
+ xbt_assert((host != NULL), "Invalid parameters");
- return (simcall_host_get_core(h));
+ return (simcall_host_get_process_list(host));
}
+
/** \ingroup m_host_management
* \brief Returns the value of a given host property
*
return simcall_host_get_consumed_energy(host);
}
-
+/** \ingroup m_host_management
+ * \brief Return the list of mounted storages on an host.
+ * \param host a host
+ * \return a dynar containing all mounted storages on the host
+ */
+xbt_dynar_t MSG_host_get_storage_list(msg_host_t host)
+{
+ xbt_assert((host != NULL), "Invalid parameters");
+ return (simcall_host_get_storage_list(host));
+}