[lkml]   [2004]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RFC] improving include header chaos

Over the last few years the header situation has become more and more
fragile. A number of header files define core data structures but also
define inline functions which reference other data structures.
This often means we have to use macros instead of inline functions only to
get the whole thing compiled.
A common problem is that inline functions need access to task information,
the introduction of thread_info shifted this problem only. Now all archs
are forced to use the same stack layout as i386. ia64 uses a hack to get
around this.
The only solution I see to actually fix this problem and gain some more
flexibility is to separate the structure definitions from the inline
The following patches separate a few core data structures to other header
files to demonstrate how it would look like. The final goal is to move the
task structure into a separate header, so it can be used by various inline
functions, without the need to use macros or make header mess even worse.
Comments and better ideas how to solve this mess are welcome. Is there
actually any interest to get this fixed?

bye, Roman
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:07    [W:0.019 / U:9.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site