Running out of bits p_flag (sys/sys/proc.h)

hiren panchasara hiren.panchasara at gmail.com
Sun Feb 17 01:58:17 UTC 2013


With revision=246484, it seems we have hit the limit.
At $WORK we have one more flag and to accommodate that we need to bump this up.

Can p_flag be bumped up to u_long?

Index: proc.h
===================================================================
--- proc.h      (revision 245937)
+++ proc.h      (working copy)
@@ -497,7 +497,7 @@
         * The following don't make too much sense.
         * See the td_ or ke_ versions of the same flags.
         */
-       int             p_flag;         /* (c) P_* flags. */
+       u_long          p_flag;         /* (c) P_* flags. */
        enum {
                PRS_NEW = 0,            /* In creation */
                PRS_NORMAL,             /* threads can be run. */

Thanks,
Hiren


More information about the freebsd-current mailing list