X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d2cd6f4e4e5c8b75159c79b7ae7d716cef99086..9e6224ecd95ff7b6452fe9b2c088138877797542:/src/msg/msg_host.c?ds=sidebyside diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index 6e1e568159..7a2c69c0e8 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -204,7 +204,10 @@ double MSG_get_host_speed(msg_host_t h) /** \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) { @@ -213,6 +216,20 @@ int MSG_host_get_core_number(msg_host_t h) return (simcall_host_get_core(h)); } +/** \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 h) +{ + xbt_assert((h != NULL), "Invalid parameters"); + + return (simcall_host_get_process_list(h)); +} + + /** \ingroup m_host_management * \brief Returns the value of a given host property *