RFC: Adding a hw.features[2] sysctl

Igor Mozolevsky igor at hybrid-lab.co.uk
Sun Jan 13 04:21:04 PST 2008

On 13/01/2008, Joe Marcus Clarke <marcus at freebsd.org> wrote:
> I find it would be useful to have the list of CPU features available via
> a sysctl.  Currently, he only ways to get this information are to have
> linprocfs mounted, or parse dmesg.boot (if it exists).  Attached are
> patches to add hw.features and hw.features2 sysctls for i386 and amd64
> (where a list of CPU features is applicable).  The results are identical
> to the Features and Features2 strings from dmesg:
> hw.features2: 0x41d<SSE3,RSVD2,MON,DS_CPL,CNXT-ID>
> hw.features:
> Comments?

Would /dev/cpuinfo not be more appropriate for this?


More information about the freebsd-current mailing list