co_memory co_memory_create(const char *name, const char *loc, size_t size); Header Fileco.h DescriptionThis function creates a shared memory. It must be called from within the configuration function of your application. ArgumentsThe arguments for co_memory_create are as follows:
Return ValueA pointer to the created memory. This return value may subsequently be used as an argument to the function co_process_create. NotesMemory names, as specified in the first argument to co_memory_create, must be unique across the application when using the Application Monitor. In simulation, this function prints an error message and terminates the application if it is called outside the configuration function. |