-/** \ingroup m_host_management
- * \brief Return the speed of the processor (in Mflop/s), regardless of
- the current load on the machine.
+/**
+ * \brief Return the speed of the processor.
+ *
+ * Return the speed (in Mflop/s), regardless of the current load on the machine.
+ * \param host SIMIX host
+ * \return Speed
+ */
+XBT_INLINE double SIMIX_host_get_speed(smx_host_t host)
+{
+ xbt_assert0((host != NULL), "Invalid parameters");
+
+ return (surf_workstation_model->extension.workstation.
+ get_speed(host->host, 1.0));
+}
+
+/**
+ * \brief Return the available speed of the processor.
+ *
+ * Return the available speed (in Mflop/s).
+ * \return Speed
+ */
+XBT_INLINE double SIMIX_host_get_available_speed(smx_host_t host)
+{
+ xbt_assert0((host != NULL), "Invalid parameters");
+
+ return (surf_workstation_model->extension.workstation.
+ get_available_speed(host->host));
+}
+
+/**
+ * \brief Return the host by its name
+ *
+ * Finds a smx_host_t using its name.
+ * \param name The name of an host.
+ * \return The corresponding host