nevermind Re: allocating a spare from kinfo_proc.

Garance A Drosihn drosih at rpi.edu
Sun Jul 11 23:04:47 PDT 2004


At 10:50 PM -0700 7/11/04, Alfred Perlstein wrote:
>* Garance A Drosihn <drosih at rpi.edu> [040711 22:23] wrote:
>  > >* Alfred Perlstein <alfred at freebsd.org> [040711 21:15] wrote:
>
>>  > > 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.
>
>I think we're ok since sizeof(long) == sizeof(void *) on all the
>platforms I could test.  And the compiler is likely to align
>a new pointer in that location in the same spot as the array.
>
>At least it would make sense if it did. :)

It should be fine.  I just wanted to mention this issue as a
"general guideline for adjusting this struct"...

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the freebsd-current mailing list