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.
- [Xenomai-help] Accessing the dev_private field of th... Jeroen Van den Keybus
- Re: [Xenomai-help] Accessing the dev_private fi... Jan Kiszka
- Re: [Xenomai-help] Accessing the dev_privat... Jeroen Van den Keybus
- [Xenomai-help] Accessing the dev_private field ... Jeroen Van den Keybus
- Re: [Xenomai-help] Accessing the dev_privat... Jan Kiszka
- Re: [Xenomai-help] Accessing the dev_pr... Jeroen Van den Keybus