tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: How to get CPU-Specific Info?



> This code does not exist ---I realize I'll have to
> write it. The question I have is whether there is
> a machine-independant framework/scheme for retrieving this sort
> of info into which processor-specific code would
> actually get the info/etc/etc/etc?

besides sysctl and cpuctl, more complex stuff can be put into what we
call "libarch".  this library is only provided on a few platforms:

% ls /usr/src/lib/libarch/
Makefile alpha    arm      i386     m68k     sparc    x86_64

the uses by these platforms is pretty divergent.


.mrg.


Home | Main Index | Thread Index | Old Index