A bit confused with the sched_4bsd.c code

Scott Long scottl at samsco.org
Thu May 5 15:15:46 PDT 2005


Halil Demirezen wrote:
> On Thursday 05 May 2005 21:48, Scott Long wrote:
> 
>>#define td_kse td_sched
> 
> 
> Yes that is also a magical case since in the sys/proc.h file,
> only a single definition lies;
> 
> struct td_sched;

That's called a forward declaration.

> 
> I could not understand anything from this. There is not body of the structure.
> Shouldn't there be a definitive structure for td_sched? if there is i really 
> could not find the body :) 
>  
> hmm, what kind of a different matter is this ? :-)

td_sched is defined within each scheduler source file.  Since the
schedulers are mutually exclusive, they don't collide.

Scott


More information about the freebsd-hackers mailing list