[lkml]   [2001]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC, CFT] include file cleanup
On Sat, 29 Dec 2001, Manfred Spraul wrote:

> It wasn't that difficult: only these includes are needed to pull in all
> substructures ;-)
> <<<<<<<
> #include <linux/config.h>
> #include <linux/types.h>
> #include <linux/spinlock.h>
> #include <linux/list.h>
> #include <linux/wait.h>
> #include <linux/timer.h>
> #include <linux/times.h>
> #include <linux/capability.h>
> #include <linux/resource.h>
> #include <linux/signal.h>
> #include <asm/param.h>
> #include <asm/signal.h>
> #include <asm/processor.h>
> #include <asm/resource.h>
> <<<<<<<<<

Indeed. Recently I wanted to stash current->pid inside a spinlock for
debugging purposes and discovered it was a nightmare because of all the
forward references that'd be needed.

"Love the dolphins," she advised him. "Write by W.A.S.T.E.."

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 13:14    [W:0.056 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site