All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] ruminations on kernel.h
@ 2007-01-07 20:24 Robert P. J. Day
  2007-01-07 20:47 ` Matthew Wilcox
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Robert P. J. Day @ 2007-01-07 20:24 UTC (permalink / raw)
  To: kernel-janitors


  just thinking out loud here, but does anyone else think that the
header file include/linux/kernel.h is a little ... unstructured?
IMHO, i would think that it would make more sense to partition a lot
of the content of that file into other (and possibly newer) header
files.

  to begin with, all of the preliminary macros of the form
{INT/LONG_MIN/MAX} would seem to be more at home in limits.h, to more
match the headers for glibc.  (yes, i realize there's no *obligation*
to do it the way glibc does it, but it would at least look more
familiar to userspace programmers.)

  the various utility macros (ARRAY_SIZE, FIELD_SIZE, min/max,
container_of, etc.) might fit better into a file called macros.h or
util.h.

  then there's all the debugging/logging stuff -- the priority macros,
loglevel stuff, pr_debug, pr_info, etc.  why not a new file called
"debug.h"?

  anyway, you get the idea.  there doesn't seem to be much rhyme or
reason for what has been tossed into kernel.h.

  thoughts?  i might whip up a patch just to get some feedback.

rday
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-08  7:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-07 20:24 [KJ] ruminations on kernel.h Robert P. J. Day
2007-01-07 20:47 ` Matthew Wilcox
2007-01-07 20:55 ` Robert P. J. Day
2007-01-07 23:18 ` Matthew Wilcox
2007-01-08  2:21 ` Ahmed S. Darwish
2007-01-08  3:07 ` Paul Bonser
2007-01-08  7:09 ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.