Re: memset as memzero

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert P. J. Day
Date: Sunday, September 23, 2007 - 9:33 am

On Sun, 23 Sep 2007, Dave Jones wrote:


  taking a step back, regardless of what constitutes a sane versus
not-sane definition of a useful macro, i think a lot of the content of
kernel.h could be moved out of there and put in a more appropriate
header file called, say, macros.h.

  the first comment in kernel.h claims that

/*
 * 'kernel.h' contains some often-used function prototypes etc
 */

but there's buckets more stuff in there than just some function
prototypes.  macros for type limits, alignment, array sizes, rounding,
and on and on.  and as for those prototypes, is there any reason that
kernel.h includes them explicitly for the contents of lib/vsprintf.c
rather than just including, say, a hypothetical vsprintf.h?  just
curious.

in any case, it would seem that kernel.h could stand a good cleaning.
it give the impression of just being an arbitrary dumping ground when
folks can't figure out where to put something.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 1:33 am)
Re: memset as memzero, Robert P. J. Day, (Sat Sep 22, 1:48 am)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 2:35 am)
Re: memset as memzero, Robert P. J. Day, (Sat Sep 22, 2:55 am)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 3:15 am)
Re: memset as memzero, Linus Torvalds, (Sat Sep 22, 11:53 am)
Re: memset as memzero, Bernd Eckenfels, (Sat Sep 22, 12:25 pm)
Re: memset as memzero, Cyrill Gorcunov, (Sat Sep 22, 12:32 pm)
Re: memset as memzero, Arjan van de Ven, (Sat Sep 22, 12:46 pm)
Re: memset as memzero, Dave Jones, (Sun Sep 23, 8:32 am)
Re: memset as memzero, Arnaldo Carvalho de Melo, (Sun Sep 23, 9:07 am)
Re: memset as memzero, Robert P. J. Day, (Sun Sep 23, 9:33 am)
Re: memset as memzero, Arnaldo Carvalho de Melo, (Sun Sep 23, 9:46 am)
Re: memset as memzero, Linus Torvalds, (Sun Sep 23, 10:05 am)
Re: memset as memzero, Willy Tarreau, (Sun Sep 23, 11:46 am)