Date: Sat, 23 Sep 2000 13:39:05 -0700 (PDT) From: Archie Cobbs <archie@whistle.com> To: Robert Watson <rwatson@FreeBSD.ORG> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: sysctl MIB and kernel internals Message-ID: <200009232039.NAA06894@bubba.whistle.com> In-Reply-To: <Pine.NEB.3.96L.1000915120346.45037J-100000@fledge.watson.org> "from Robert Watson at Sep 15, 2000 12:26:56 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson writes: > I'd like to see us consider moving to an alternative model, divorcing the > implementation internals of various kernel objects (processes, et al) from > the MIB interface retrieving management data about them. I.e., struct > proc would continue to be used in kernel, but relevant fields would be > copied to struct export_proc for export via sysctl. In addition, it would > be worth prefixing these exported structures with a version number > allowing the caller to determine if they support an appropriate version of > the interface, allowing a more comprehensible error. Only fields > desirable to export would be in export_proc, so if an extra pointer is > added to struct ucred (recent resource control changes, capabilities), an > extra pointer to struct proc (jail), etc won't needless break userland > tools. One semi-remote possibility would be to use the netgraph/ng_parse.h library to convert all binary structures into ASCII form (and only the relevant fields). ng_parse is basically a C structure <-> ASCII translation library. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009232039.NAA06894>