crush_find_rule(9)
π 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β thecrush_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 frcrush_do_rule(9)β her OTHER bestie, the whole friend group ate β¨
lowkey a lil reminder thatrulesetandtypeare 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms