On Thu, Aug 13, 2015 at 4:57 AM, Saurabh Gadia wrote:
> For time being I am calculating it this way:
>
> #define typeaddr(addr, type, member) \
> (type *)((char *)(addr) - offsetof(type, member))
>
If you need this, use RTEMS_CONTAINER_OF macro
> CORE_mutex_Control *the_mutex= typeaddr(holder->
For time being I am calculating it this way:
#define typeaddr(addr, type, member) \
(type *)((char *)(addr) - offsetof(type, member))
CORE_mutex_Control *the_mutex= typeaddr(holder->Wait.queue,
CORE_mutex_Control, Wait_queue);
Is there any other easy way? Like I guess we maintain objects so is