msr_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

msr_read(9) β€” straight out of the Kernel API Manual, bestie β€” reads an MSR with error handling. That's the whole vibe πŸ’…


✨ SYNOPSIS ✨

int msr_read (u32 msr , struct msr *m );

🌸 ARGUMENTS 🌸

  • msr β€” the MSR to read πŸ‘‘
  • m β€” the value to read into 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: msr_read gives you back read data only on success. Otherwise, it does not change the output argument m β€” like, not even a little. m stays exactly how it was. No cap. Periodt. πŸ’…

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, slay ✨
  • otherwise β€” an error code 😭

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./arch/x86/lib/msr.c β€” plus these icons: msr_write(9), msr_set_bit(9), and msr_clear_bit(9) 🌈


xoxo, msr_read(9) β€” chilling in ./arch/x86/lib, dated October 2026 πŸ«ΆπŸ’–

πŸ“¦ where this page comes from