msc_find_window(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msc_find_window β€” from the Kernel API Manual, section 9, bestie ✨

Okay so picture this: you're deep in the Intel TH driver, you've got an sg_table, and you're like "which window is this even??" β€” that's literally the whole plot. msc_find_window goes looking for a window that matches a given sg_table. That's it. That's the girl. πŸŽ€


✨ NAME ✨

msc_find_window β€” find a window matching a given sg_table πŸ¦‹


🌸 SYNOPSIS 🌸

struct msc_window * msc_find_window (struct msc *msc , struct sg_table
*sgt , bool nonempty );

Lowkey the whole thing in one line, ngl. πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • msc β€” the MSC device. Your main character. 🌟
  • sgt β€” the SG table of the window, i.e. the thing we're matching against. πŸ”
  • nonempty β€” skip over empty windows. Set it and empty ones just don't get a look in, periodt. πŸ’…

🫢 RETURN 🫢

An MSC window structure pointer is what you get. Or NULL if the window could not be found β€” and yes, that's the "she's not here" outcome, no cap. 😭


🌈 SEE ALSO 🌈

Kernel file ./drivers/hwtracing/intel_th/msu.c, plus the whole friend group:


Fr fr, that SEE ALSO list is giving "invited the entire group chat to the function" energy, and honestly? Iconic. 🧚

K bye ily, this page lives in ./drivers/hwtracing/intel_th and it was last touched October 2026 β€” go read the source, it's a slay πŸ’œπŸŒΈ

πŸ“¦ where this page comes from