SimGrid  3.18
Versatile Simulation of Distributed Systems
msg_io.cpp File Reference
#include "simgrid/s4u/Host.hpp"
#include "simgrid/s4u/Storage.hpp"
#include "src/msg/msg_private.hpp"
#include "src/plugins/file_system/FileSystem.hpp"
#include <numeric>

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (msg_io, msg, "Logging specific to MSG (io)")
 
const char * MSG_storage_get_name (msg_storage_t storage)
 Returns the name of the msg_storage_t. More...
 
const char * MSG_storage_get_host (msg_storage_t storage)
 
xbt_dict_t MSG_storage_get_properties (msg_storage_t storage)
 Returns a xbt_dict_t consisting of the list of properties assigned to this storage. More...
 
void MSG_storage_set_property_value (msg_storage_t storage, const char *name, char *value)
 Change the value of a given storage property. More...
 
const char * MSG_storage_get_property_value (msg_storage_t storage, const char *name)
 Returns the value of a given storage property. More...
 
msg_storage_t MSG_storage_get_by_name (const char *name)
 Finds a msg_storage_t using its name. More...
 
xbt_dynar_t MSG_storages_as_dynar ()
 Returns a dynar containing all the storage elements declared at a given point of time. More...
 
voidMSG_storage_get_data (msg_storage_t storage)
 
msg_error_t MSG_storage_set_data (msg_storage_t storage, void *data)
 
sg_size_t MSG_storage_read (msg_storage_t storage, sg_size_t size)
 
sg_size_t MSG_storage_write (msg_storage_t storage, sg_size_t size)
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( msg_io  ,
msg  ,
"Logging specific to MSG (io)"   
)

◆ MSG_storage_get_host()

const char* MSG_storage_get_host ( msg_storage_t  storage)

◆ MSG_storage_get_property_value()

const char* MSG_storage_get_property_value ( msg_storage_t  storage,
const char *  name 
)

Returns the value of a given storage property.

Parameters
storagea storage
namea property name
Returns
value of a property (or nullptr if property not set)

◆ MSG_storage_get_data()

void* MSG_storage_get_data ( msg_storage_t  storage)

◆ MSG_storage_set_data()

msg_error_t MSG_storage_set_data ( msg_storage_t  storage,
void data 
)

◆ MSG_storage_read()

sg_size_t MSG_storage_read ( msg_storage_t  storage,
sg_size_t  size 
)

◆ MSG_storage_write()

sg_size_t MSG_storage_write ( msg_storage_t  storage,
sg_size_t  size 
)