STRUCT TMC_PAGES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tmc_pages πŸ’… (section 9, Kernel API Manual, bestie)

okay so real talk β€” this is struct tmc_pages, from the Kernel API Manual, section 9, and it's literally just a little cutie container for a Collection of pages used for SG. that's it, that's the whole vibe πŸŽ€


🌸 NAME 🌸

struct tmc_pages β€” a Collection of pages used for SG. no cap, that's the entire job description 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct tmc_pages {
    int nr_pages;
    dma_addr_t *daddrs;
    struct page     **pages;
 };

like… look at her. three members. main character energy, minimal effort ✨ (yes the indentation on that closing brace is exactly like that, we don't fix what isn't broken πŸ’…)


πŸ‘‘ Members πŸ‘‘

  • nr_pages β€” Number of pages in the list. the headcount. the attendance sheet. how many pages we're actually dealing with πŸ“‹
  • daddrs β€” Array of DMA'able page address. (yes, "address" singular, that's what the page says, we are not editing the page, we respect the page πŸ™ˆ) it's the array of DMA-able page addresses, plural energy, singular spelling πŸ”₯
  • pages β€” Array pages for the buffer. the actual struct page ** gang, all lined up for the buffer 🧚 (and yes, "Array pages" β€” again, not my words, I'm just the messenger 😭)

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwtracing/coresight/coresight-tmc.h ← go read it, iykyk πŸ“‚
  • struct etr_buf(9)
  • struct tmc_drvdata(9)

like genuinely go click through those, they're the whole friend group πŸ’œ


vibe check status: this struct is small, iconic, and passes πŸŽ€

that's the page!! mwah πŸ’‹

source: ./drivers/hwtracing/coresight β€” dated October 2026 β€” xoxo, your local kernel girlie, signing off πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from