pointer to base of an iterable section #api


yshragai.firmware@...
 

Hi,
I would like to use the Polling API.
And, I would like to set up the array of k_poll_event objects as an iterable section, so that I can potentially scale it dynamically.
The only hitch I can see is that I need to be able to generate a pointer to the base of the iterable section, to provide as the events parameter to k_poll().
Is there a best (or at least good) method for doing this? (Short of creating a dummy k_poll_event object called "aaaaaaa" and pointing to it...)

Thanks!
 

Join users@lists.zephyrproject.org to automatically receive all group messages.