get_depot_slab_iterator(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_depot_slab_iterator(9) ✨

hii bestie πŸ’– welcome to the Kernel API Manual, specifically the one (1) page about get_depot_slab_iterator(9) β€” it's giving "small function, huge friend group" and honestly? we love that for it.


🌸 NAME 🌸

get_depot_slab_iterator β€” Return a slab_iterator over the slabs in a slab_depot. that's it, that's the whole job, and it does it beautifully. 🫢

✨ SYNOPSIS ✨

struct slab_iterator get_depot_slab_iterator (struct slab_depot *depot ,
       slab_count_t start , slab_count_t end , slab_count_t stride );

πŸŽ€ ARGUMENTS πŸŽ€

  • depot β€” the slab_depot you're gonna iterate over. your main character. πŸ‘‘
  • start β€” the number of the slab to start iterating from. where the little journey begins, no cap.
  • end β€” the number of the last slab which may be returned. like, the absolute cut-off, do not pass go. 🚫
  • stride β€” the difference in slab number between successive slabs. how big your steps are. it's giving "skip, skip, skip". πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this is the important bit and I need you to internalize it: iteration always occurs from higher to lower numbered slabs. highkey going down, never up. πŸ“‰ not me warning you about the direction like it's a one-way street, but it literally is. periodt.

πŸ’– RETURN πŸ’–

An initialized iterator structure. that's it β€” you get a whole ready-to-go iterator back, all dressed up and ready to vibe. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

bestie. sit down. this is the friend group, and it is large. 🫠 Kernel file ./drivers/md/dm-vdo/slab-depot.c plus:


and that's the whole page bestie, you ate it up πŸ’… this little gem lives in ./drivers/md/dm-vdo and the version vibes are dated October 2026 β€” iconic, timeless, fr fr. πŸŽ€βœ¨

πŸ“¦ where this page comes from