Subject: Re: CVS commit: src
To: None <rmind@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 01/17/2008 15:05:20
> > > - Why? Note, that we pass the size of the structure.
> > 
> > are you asking why i think exporting MAXCPUS is a bad idea?
> > 
> > > - Do you have a better suggestion?
> > 
> > remove the knowledge of MAXCPUS from userland.
> 
> We depend on MAXCPUS only in kernel, since we use size in userland. Do you
> want to hide it from userland, or replace cpuset_t dependence to MAXCPUS in
> general?

actually, at least schedctl seems to depend on MAXCPUS.
besides, _sched_setaffinity and _sched_getaffinity silently truncates a bitmap.
it's fine to use it in kernel internally, but not a part of the userland abi.

> Modification to use some static size would not be very comfortable..

i'm not sure what you mean here.
you hardcoded a static size (MAXCPUS), which is what i'm not happy with.

YAMAMOTO Takashi