RFC: cpuid_t

Adrian Chadd adrian.chadd at gmail.com
Sat Aug 9 15:53:46 UTC 2014


Hi,

How's this look?

Index: sys/sys/_types.h
===================================================================
--- sys/sys/_types.h    (revision 269480)
+++ sys/sys/_types.h    (working copy)
@@ -52,6 +52,7 @@
 typedef    __uint16_t    __nlink_t;    /* link count */
 typedef    __int64_t    __off_t;    /* file offset */
 typedef    __int32_t    __pid_t;    /* process [group] */
+typedef    __uint32_t    __cpuid_t;    /* CPU ID */
 typedef    __int64_t    __rlim_t;    /* resource limit - intentionally */
                     /* signed, because of legacy code */
                     /* that uses -1 for RLIM_INFINITY */
Index: sys/sys/types.h
===================================================================
--- sys/sys/types.h    (revision 269480)
+++ sys/sys/types.h    (working copy)
@@ -154,6 +154,11 @@
 #define    _LWPID_T_DECLARED
 #endif

+#ifndef    _CPUID_T_DECLARED
+typedef    __cpuid_t    cpuid_t;    /* CPU ID */
+#define    _CPUID_T_DECLARED
+#endif
+
 #ifndef _MODE_T_DECLARED
 typedef    __mode_t    mode_t;        /* permissions */
 #define    _MODE_T_DECLARED



-a


More information about the freebsd-arch mailing list