Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread David Holland
On Mon, Nov 15, 2010 at 10:41:55PM +, David Laight wrote: > > Indeed. Properly speaking though, headers that are exported to > > userland should define only the precise symbols that userland needs; > > kernel-only material should be kept elsewhere. > > One start would be to add a sys/proc

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread Masao Uebayashi
On Mon, Nov 15, 2010 at 08:34:40PM +, David Holland wrote: > (moving this to tech-kern because it's the right place and per request) > > On Mon, Nov 15, 2010 at 11:24:21AM +0900, Masao Uebayashi wrote: > > > Every header file should include the things it requires to compile. > > > Therefore,

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread Masao Uebayashi
On Tue, Nov 16, 2010 at 05:41:14AM +, David Holland wrote: > On Tue, Nov 16, 2010 at 10:20:46AM +0900, Masao Uebayashi wrote: > > Another thing: > > > > - We should provide sysconf() for kernel modules (device drivers) too, > > otherwise we have to expose unnecessary symbols (uvmexp). >

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread David Holland
On Tue, Nov 16, 2010 at 10:20:46AM +0900, Masao Uebayashi wrote: > Another thing: > > - We should provide sysconf() for kernel modules (device drivers) too, > otherwise we have to expose unnecessary symbols (uvmexp). Why not the complete sysctl tree? -- David A. Holland dholl...@netbsd.or

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread Masao Uebayashi
On Mon, Nov 15, 2010 at 11:24:21AM +0900, Masao Uebayashi wrote: > On Sun, Nov 14, 2010 at 05:52:51AM +, David Holland wrote: > > On Sun, Nov 14, 2010 at 03:32:44AM +, Masao Uebayashi wrote: > > > XXX What is the conclusion about direct vs. indirect #include from > > headers? > > > > Eve

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread Arnaud Lacombe
Hi, On Mon, Nov 15, 2010 at 5:41 PM, David Laight wrote: > On Mon, Nov 15, 2010 at 08:50:34AM +, David Holland wrote: >> On Mon, Nov 15, 2010 at 02:48:29PM +0900, SODA Noriyuki wrote: >>  > Well, there is another thing which has to be considered.  That is >>  > name space pollution. >>  > Hea

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread David Laight
On Mon, Nov 15, 2010 at 08:50:34AM +, David Holland wrote: > On Mon, Nov 15, 2010 at 02:48:29PM +0900, SODA Noriyuki wrote: > > Well, there is another thing which has to be considered. That is > > name space pollution. > > Header files which are exported to userland (for userland visible AP

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread David Holland
(moving this to tech-kern because it's the right place and per request) On Mon, Nov 15, 2010 at 11:24:21AM +0900, Masao Uebayashi wrote: > > Every header file should include the things it requires to compile. > > Therefore, there should in principle be no cases where a header file > > (or sourc

Re: CVS commit: src/sys/arch/powerpc/oea

2010-11-15 Thread David Holland
On Mon, Nov 15, 2010 at 02:48:29PM +0900, SODA Noriyuki wrote: > Well, there is another thing which has to be considered. That is > name space pollution. > Header files which are exported to userland (for userland visible APIs) > should not export random symbols. Only symbols which are define