pluknet pluknet at gmail.com
Thu Apr 15 10:06:26 UTC 2010

On 7 April 2010 23:49, John Baldwin <jhb at freebsd.org> wrote:
> On Tuesday 06 April 2010 11:24:21 am Nathan Whitehorn wrote:
>> pluknet wrote:
>> > Hi,
>> >
>> > the interesting part for me is how to properly assert now a value of e.g.
>> > KINFO_PROC_SIZE varying on err.. different COMPAT_FREEBSD32 arches
>> > (say, FreeBSD would have _kern_proc FreeBSD32 compat layer for top/ps/).
>> >
>> >
>> Probably the cleanest thing would be to set KINFO_PROC_SIZE in
>> machine/proc.h instead of where it is now, and then also define a
>> KINFO_PROC32_SIZE or something in the same place. Also, that would be a
>> really nice feature.
> Yes, I think this sounds like the best approach.

Something quick & not clean (well, it passes universe) attached.
So, don't shoot me, please ;-).
It's unclear how to convert those mips o32/n32/o64/n64 though.
I had to make definitions out of _KERNEL visibility as far as
<sys/proc.h> is included from <sys/user.h> in !_KERNEL only too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: KINFO_PROC_SIZE_md.diff
Type: application/octet-stream
Size: 3687 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100415/a9847466/KINFO_PROC_SIZE_md.obj

More information about the freebsd-current mailing list