Jeroen Van den Keybus wrote:
> The dev_private data field of an rtdm_dev_context is defined as char[0]. How
> do I access such a field properly (given the fact that I defined a nonzero
> context_size in the rtdm_device structure during driver registration) ?
> 
> E.g. trying to do:
> 
> (struct my_struct *)context->dev_private = NULL;
> 
> results in:
> 
> error: incompatible types in assignment
> 
> I _am_ able to compare though:
> 
> if ((struct my_struct *)context->dev_private == NULL)
> ...
> 
> seems to compile fine.
> 
> 
> Jeroen.
> 

context->dev_private does not contain an address, it IS the start
address of your private date. It's size is specified during device
registration. See existing drivers for usage examples.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to