svn commit: r296320 - in head/sys: kern sys

Konstantin Belousov kostikbel at gmail.com
Thu Mar 3 11:29:13 UTC 2016


On Thu, Mar 03, 2016 at 12:05:20PM +0100, Hans Petter Selasky wrote:
> On 03/03/16 11:59, Hans Petter Selasky wrote:
> > +/* Flags for callout_stop_safe() */
> > +#define    CS_DRAIN        0x0001 /* callout_drain(), wait allowed */
> > +#define    CS_MIGRBLOCK        0x0002 /* Block migration, return value
> > +                      indicates that the callout was
> > +                          executing */
> > +
> >    #ifdef _KERNEL
> 
> Should these defines be under #ifdef _KERNEL ?

Why do they need the braces ?  Other bits in the callout.h header are
not restricted for kernel only, and I do not see a difference between
CALLOUT_* and CS_*.


More information about the svn-src-all mailing list