Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 May 2005 16:14:45 -0600
From:      Scott Long <scottl@samsco.org>
To:        Halil Demirezen <halil@enderunix.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: A bit confused with the sched_4bsd.c code
Message-ID:  <427A9AD5.6050201@samsco.org>
In-Reply-To: <200505060103.38645.halil@enderunix.org>
References:  <200505060010.26184.halil@enderunix.org> <427A94C0.1020205@samsco.org> <200505060103.38645.halil@enderunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?427A9AD5.6050201>