msc_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msc_disable(9) β€” Kernel API Manual, bestie edition πŸŽ€

Okay so picture this: you're deep in the kernel, you're in the Kernel API Manual, and you need to shut some MSC hardware all the way down. That's the whole vibe of this page. Let's get into it ✨


✨ NAME ✨

msc_disable β€” disable MSC hardware. That's it, that's the tweet. πŸ¦‹


✨ SYNOPSIS ✨

void msc_disable (struct msc *msc );

No return value, it just does the thing. Iconic behaviour honestly. πŸ‘‘


✨ ARGUMENTS ✨

  • msc β€” the MSC device you wanna disable. Your main character struct, basically. πŸ’œ

✨ DESCRIPTION ✨

So here's the deal fr fr: if msc is enabled, this function first disables tracing on the switch, and then it disables MSC storage. Two steps, in that exact order, no skipping. 🫢

🚨 Important caveat, do NOT sleep on this: the caller must hold msc::buf_mutex. That's on you, not on the function. No cap, if you don't hold it you're asking for trouble 😭

🌈 SEE ALSO 🌈

The whole friend group, assembled πŸ’–:


Anyway bestie, that's the whole page 🧚 This little gem lives over in ./drivers/hwtracing/intel_th, and it's dated October 2026 β€” so yeah, it's giving future-forward, it's giving timeless kernel lore. Go hold that mutex and slay πŸ’…πŸ’€πŸŒΈ

πŸ“¦ where this page comes from