tid_rdma_fin...ys_blocks_8k(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tid_rdma_fin...ys_blocks_8k(9) β€” bestie edition

okay so this is a page straight out of the Kernel API Manual and honestly? it's a little niche but it eats. we're talking InfiniBand, we're talking TID RDMA, we're talking putting pages into 8k-shaped lil groups. stay with me 🫢


✨ NAME ✨

tid_rdma_find_phys_blocks_8k β€” get groups base on mr info

(that's the original wording, no cap β€” "get groups base on mr info". iconic grammar, we respect it πŸ’…)


🌸 SYNOPSIS 🌸

u32 tid_rdma_find_phys_blocks_8k (struct tid_rdma_flow *flow , struct
       page **pages , u32 npages , struct tid_rdma_pageset *list );

πŸŽ€ ARGUMENTS πŸŽ€

  • flow β€” the overall info for a TID RDMA segment. it's the whole vibe check for the segment, basically.
  • pages β€” a pointer to an array of page structs. yes, pointer to an array, she's fancy like that.
  • npages β€” the number of pages. how many we got? this many.
  • list β€” the page set array to return. this is the output, the main character of the whole function ngl.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this routine do? it parses an array of pages and computes pagesets in an 8k compatible way. periodt. ✨

the way it works: pages get tested two at a time β€” that's i, i + 1 for contiguous pages, and i - 1 and i contiguous pages. lowkey thorough πŸ’–

if any condition is false, any accumulated pages get flushed, and v0, v1 are emitted as separate PAGE_SIZE pagesets. that's the dramatic exit.

otherwise? the current 8k is totaled for a future flush. saving it for later, iykyk 🌈


πŸ”₯ RETURN πŸ”₯

the number of pagesets list set with the returned number of pagesets. slay πŸ’€ (fr fr, that's the sentence, keep it close to your heart)


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file is at ./drivers/infiniband/hw/hfi1/tid_rdma.c β€” go say hi 🫢 and then there's the whole friend group:


πŸ’‘ tiny note bestie: this whole page lives in ./drivers/infiniband/hw/hfi1 and it's dated October 2026 β€” yes, the future. she's ahead of her time 🧚

anyway that's the function, mwah, go read the 4k sibling next πŸ’œ

πŸ“¦ where this page comes from