[Mono-list] CPUID??

Chris Howie cdhowie at gmail.com
Wed Aug 26 12:02:37 EDT 2009


On Wed, Aug 26, 2009 at 7:43 AM, n_n O_O<ivier at hotmail.com> wrote:
> I don't believe you actually need kernel level permisions to get a
> CPUID. So  i'll instead take this to mean, i will have to write my own
> native library to call to get this information for each platform mono
> supports. wundervoll!

You don't need "kernel level permissions" (whatever the hell that
means... I assume you mean root) but your kernel *does* have to be
compiled with support for the CPUID call.  Mine (stock Debian) does
not appear to be, which means that Debian-derived distros like Ubuntu
probably won't either.  And that's likely going to be at least half of
your customer base.

You'd be better off using the MAC address of the physical ethernet and
wlan cards, IMO.  Though if you do find a way to obtain a unique CPU
ID on Linux, I'd be interested to know how.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list