X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d2cd6f4e4e5c8b75159c79b7ae7d716cef99086..a78ea01a79ad9f2b8586a3d481edbd461167631e:/src/simix/smx_user.c diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index 77d8254d2d..3e0c130ee0 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -94,6 +94,17 @@ int simcall_host_get_core(smx_host_t host) 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); +} /** @@ -1224,6 +1235,47 @@ size_t simcall_file_get_size (smx_file_t fd){ 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)