[LITMUS^RT] A little confused on struct subtask subtasks[0]
Hang Su
hsu at cs.utsa.edu
Mon Feb 20 22:14:45 CET 2012
Hi all:
I am reading source code about P-fair scheduling algorithm under
/litmus/sched_pfair.c.* struct* subtask subtasks[0] is declared in
*struct*pfair_param. From definition of function dump_subtasks(struct
task_struct*t), subtasks is like a pointer to struct subtask or the name of
a struct subtask array. But why it is declared as a struct subtask array
with zero element ? is it as the same meaning as a pointer to struct
subtask ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20120220/09704fcf/attachment.html>
More information about the litmus-dev
mailing list