Subject: Re: p_flag in struct proc: int -> uint64_t
To: Elad Efrat <elad@NetBSD.org>
From: Simon Burge <simonb@NetBSD.org>
List: tech-kern
Date: 10/03/2006 12:33:55
Elad Efrat wrote:
> Index: sysctl.h
> ===================================================================
> RCS file: /cvsroot/src/sys/sys/sysctl.h,v
> retrieving revision 1.157
> diff -u -p -r1.157 sysctl.h
> --- sysctl.h 8 Sep 2006 20:58:58 -0000 1.157
> +++ sysctl.h 2 Oct 2006 21:07:17 -0000
> @@ -561,6 +561,8 @@ struct kinfo_proc2 {
> uint64_t p_realstat; /* LONG: non-LWP process status */
> uint32_t p_svuid; /* UID_T: saved user id */
> uint32_t p_svgid; /* GID_T: saved group id */
> +
> + int32_t p_flag2; /* INT: second batch of P_* flags */
> };
>
> /*
I'm pretty sure you want another int32_t at the end there, so that the
kinfo_proc2 structure remains a multiple of 64-bits in size. Call it
p_pad or something, and use a comment like "INT: unused, free for use"
or similar.
Simon.