Access MSR functions in userspace?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Hasan Rashid
Maxim, HPA,
I loaded the module msr.o and when I try to use wrmsr or rdmsr from the msr
tools I get rdmsr: open: No such device. It seems like device doesn't register upon module load. I have created the devices on the system using mknod. Meaning/dev/cpu/msris there and I changed the appropriate path in themsr.c(module)andwrmsr.c(utlity) file.What would prompt this error message?
/dev/cpu/msr is bogus. It should be /dev/cpu/0/msr etc.
Sounds like your version of udev might be out of date, or you're using an old kernel which doesn't communicate /dev/cpu/* to udev properly.
Revert your hacks and, if you have to create the nodes manually, use the MAKEDEV script included with the msr-tools.
-hpa