tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: UVM typedef struct



On Tue, Aug 11, 2009 at 03:38:40AM -0400, der Mouse wrote:
> To pick on sys/proc.h as a possibly-inappropriate example, this
> paradigm has sys/proc.h containing
> 
> struct proc;
> ...API declarations...
> 
> and then something else - perhaps a .c file if there's just one, or if
> not then sys/proc-impl.h or some such - includes sys/proc.h and adds
> 
> struct proc {
>       ...details, private to the implementation...
> };

If anything like this is done, I'd like to kindly request that
there be an option to expose the contents of the structure with a 
config or compile flag.  It is very annoying to try to debug a
program where you can't print out a structure unless you're in
the "right" stack frame.

eric


Home | Main Index | Thread Index | Old Index