STRUCT MSC_WINDOW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct msc_window(9) ✨

okay so this is a page from the Kernel API Manual, and bestie, it's about struct msc_window β€” the multiblock mode window descriptor. yes it sounds intense. no it's not scary. let's get into it 🫢


🌸 NAME 🌸

struct msc_window β€” the multiblock mode window descriptor, literally the lil' record that says "this window starts here, has this many blocks, and belongs to this MSC device" πŸ’–


✨ SYNOPSIS ✨

struct msc_window {
    struct list_head        entry;
    unsigned long           pgoff;
    enum lockout_state      lockout;
    spinlock_t lo_lock;
    unsigned int            nr_blocks;
    unsigned int            nr_segs;
    struct msc              *msc;
    struct sg_table         _sgt;
    struct sg_table         *sgt;
 };

look at her. nine fields. main character energy fr fr πŸ‘‘


πŸŽ€ Members πŸŽ€

the way each one of these has a whole personality:

  • entry β€” window list linkage, and it hooks into msc::win_list. it's giving "i know a guy who knows a guy" 🌈
  • pgoff β€” the page offset into the buffer where this window starts. where it all begins, periodt πŸ“
  • lockout β€” the lockout state. see the comment below, iykyk πŸ™ˆ
  • lo_lock β€” the spinlock that serializes the lockout state. someone's gotta keep it together πŸ’…
  • nr_blocks β€” how many blocks (pages) are in this window. the headcount πŸ”’
  • nr_segs β€” how many segments are in this window, and yes it's <= nr_blocks. important!! don't forget that part 🫢
  • msc β€” pointer to the MSC device. this window's home base 🏠
  • _sgt β€” array of block descriptors 🧚
  • sgt β€” array of block descriptors. yes, again. they're twins, it's iconic ✨

πŸ’œ SEE ALSO πŸ’œ

so many friends, so many cross-references, we love a community πŸ¦‹

Kernel file ./drivers/hwtracing/intel_th/msu.c, plus:

go read them. not me being a whole study guide rn 😭

and that's the whole page bestie, you ate that πŸ’…βœ¨ this came from ./drivers/hwtracing/intel_th, dated October 2026 β€” mwah, catch you on the next manpage πŸŽ€πŸ’–

πŸ“¦ where this page comes from