Date: Mon, 12 Jul 2004 01:23:28 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Alfred Perlstein <alfred@freebsd.org>, current@freebsd.org Subject: Re: nevermind Re: allocating a spare from kinfo_proc. Message-ID: <p06110407bd17cd88a5ca@[128.113.24.47]> In-Reply-To: <20040712045053.GY95729@elvis.mu.org> References: <20040712041539.GW95729@elvis.mu.org> <20040712045053.GY95729@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At 9:50 PM -0700 7/11/04, Alfred Perlstein wrote: >Sorry, got this done now. > >tested on sparc64, alpha and i386. > >* Alfred Perlstein <alfred@freebsd.org> [040711 21:15] wrote: >> I would like to allocate a void * "user pointer" from struct >> kinfo_proc. >> > > This is for convience of programs that want to retrieve a > > kinfo_proc but also compute some information and hang it > > from the kinfo proc. Fwiw, /bin/ps does this by creating it's own struct which has a 'struct kinfo_proc' as one variable inside of it. However, this means that `ps' has to copy all the kinfo_proc's that the kernel returns into an array of these other structs. Depending on what the program is doing with those kinfo_proc's, this new variable would probably make more sense. > > Are there any guidelines for adjusting this struct that I > > should be aware of? It would be nice to make sure that alignment issues are not wasting space on *any* of the platforms. When I made my recent changes to user.h, I had a program which printed out all the variables and their alignments. If I have time this week I will update that program and see what it says on the different hardware platforms. > > Can anyone do it for me? > > > > thank you! -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06110407bd17cd88a5ca>