crush_find_rule(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crush_find_rule πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this is the page for crush_find_rule(9), and yes she's a little function but she ATE. let's get into it 🫢


✨ NAME ✨

crush_find_rule β€” find a crush_rule id for a given ruleset, type, and size. literally that's the whole gig, no cap πŸ’–


🌸 SYNOPSIS 🌸

int crush_find_rule (const struct crush_map *map , int ruleset , int
type , int size );

look at her. iconic signature. copy it exactly bestie, character for character, don't get creative 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” the crush_map. yes it's just the map. she's holding everything, main character energy fr fr πŸ‘‘
  • ruleset β€” the storage ruleset id. it's user defined, so like, that's on you boo πŸ’…
  • type β€” storage ruleset type. also user defined. also on you 🌸
  • size β€” output set size. the size of the output set. slay πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

  • the kernel file ./net/ceph/crush/mapper.c β€” go read the source, iykyk πŸ”₯
  • crush_choose_firstn(9) β€” her bestie fr fr
  • crush_do_rule(9) β€” her OTHER bestie, the whole friend group ate ✨

lowkey a lil reminder that ruleset and type are both user defined, so if it goes weird, check yourself before you wreck yourself bestie πŸ’€

and that's the page!! πŸŽ€ k bye, this one comes to you from ./net/ceph/crush, dated October 2026 β€” mwah, see you in the group chat πŸŒˆπŸ’œβ­

πŸ“¦ where this page comes from