iterate_supers_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ iterate_supers_type(9) ✨

okay so this is from the Kernel API Manual, bestie, and it's literally about calling a function for superblocks of a given type. iconic behavior fr fr πŸ’…


🌸 NAME 🌸

iterate_supers_type β€” call function for superblocks of given type


πŸŽ€ SYNOPSIS πŸŽ€

void iterate_supers_type (struct file_system_type *type , void
(*f)(struct super_block *, void *) , void *arg );

πŸ’– ARGUMENTS πŸ’–

  • type β€” the fs type, like, which flavor of filesystem we're talking about πŸ¦‹
  • f β€” the function to call, the main character of this whole operation
  • arg β€” the argument to pass to it, lil care package 🎁

✨ DESCRIPTION ✨

So here's the vibe: it scans the superblock list and calls the given function, passing it a locked superblock and the given argument. that's it, that's the whole thing. no cap, it's giving "iterator with commitment issues" but in a good way 😭

lowkey important detail: the superblock arrives locked when your function gets it. do not sleep on that. πŸ”’

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/super.c:

like, the whole superblock friend group showed up to the party πŸ«ΆπŸ‘‘


mwah πŸ’‹ this page lives in ./fs and the version it's serving is October 2026 β€” go read it again sometime, bestie, it's worth it ⭐🌈

πŸ“¦ where this page comes from