cvs commit: src/sys/i386/include param.h
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Thu Sep 2 13:48:34 PDT 2004
Julian Elischer wrote this message on Thu, Sep 02, 2004 at 11:12 -0700:
> David O'Brien wrote:
> >What it really means is we haven't provided a sufficient API for userland
> >to get a kernel data that obviously is needed.
>
> yes.. it's tricky..
> should we define a "_KERNEL_INTERFACE" or something?
> how about _REALLY_IS_KERNEL
> which defines _KERNEL
> so if you just need the interface you define _KERNEL
> but include files cna protect REALLY internal stuff with "#ifdef
> _REALLY_IS_KERNEL
The question first is, do we want to use the same structure in userland
and kernel.. If we do, then it should not be under _KERNEL, and be
publicly exported... If we don't need the entire structure, then we
define the common structure, and write a function or two that converts
between the two structures... like struct xfile, struct xprision,
struct xvfsconf, struct xsocket, struct xucred, struct xunpcb,
struct xunpgen, struct xvnode...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the cvs-src
mailing list