I have a struct like
struct my_struct {
struct list_head queues[NB_QUEUES];
};
I would like to access at the first element of one of the queue (index is computed but I take 2 for the example, which is < NB_QUEUES) like the following (which works without arrays)
struct list_head t = list_first_entry(&foo->queues[2], struct my_struct, ???);
What am I supposed to do to obtain the first element of the queue at the index 2 ? I didn't find anything which compils