RTEMS CPU Kit with SuperCore 22.214.171.124
Union type to hold a pointer to an immutable or a mutable object. More...
|const void *||immutable_object|
Union type to hold a pointer to an immutable or a mutable object.
The main purpose is to enable passing of pointers to read-only send buffers in the message passing subsystem. This approach is somewhat fragile since it prevents the compiler to check if the operations on objects are valid with respect to the constant qualifier. An alternative would be to add a third pointer argument for immutable objects, but this would increase the structure size.