get_slab_number(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is a page straight out of the Kernel API Manual, and it's about get_slab_number β€” no cap, the name literally tells you everything: it gets the number of the slab that contains a specified block. like, you hand it a block, it tells you which slab that block is living in. that's the whole vibe πŸŽ€


✨ NAME ✨

get_slab_number β€” get the number of the slab that contains a specified block. periodt.


🌸 SYNOPSIS 🌸

int get_slab_number (const struct slab_depot *depot ,
physical_block_number_t pbn , slab_count_t *slab_number_ptr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • depot β€” the slab depot. yes, the whole depot. she's the main character here πŸ‘‘
  • pbn β€” the physical block number. the block you're asking about, fr fr.
  • slab_number_ptr β€” a pointer to hold the slab number. like, this is where the answer goes to live afterwards πŸ’–

πŸ’œ RETURN πŸ’œ

VDO_SUCCESS or an error. that's it, that's the whole return situation πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

okay this list is long β€” like, genuinely iconic levels of long β€” but every single one of these is a real reference on this page, so we're listing them all. grab a snack πŸ“

the kernel file is ./drivers/md/dm-vdo/slab-depot.c, and then:

like I said. iconic. and that's the entire list, nothing skipped, I would never do you like that 🫢


🧚 sign-off 🧚

this little love letter lives in ./drivers/md/dm-vdo, it's the October 2026 edition, and the page itself is get_slab_number(9). go find your slab, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from