devl_rate_leaf_create(9)
π devl_rate_leaf_create(9)
okay bestie, welcome to the Kernel API Manual β¨ this one is devl_rate_leaf_create, and no cap, it's a whole little vibe: it makes a devlink rate leaf. that's it. that's the function. let's get into it π
πΈ SYNOPSIS πΈ
int devl_rate_leaf_create (struct devlink_port *devlink_port , void
*priv , struct devlink_rate *parent );
like, literally the signature, untouched, i would never π
π¦ ARGUMENTS π¦
devlink_portβ the devlink port object you're creating the rate object on. it's giving home base, it's giving main character energy πprivβ driver private data. your own little stash of stuff, the kernel just holds onto it for you π«Άparentβ a parentstruct devlink_rate. yes bestie, family tree energy, we love a hierarchy π
β¨ DESCRIPTION β¨
so what does it actually do? it creates a devlink rate object of type leaf on the provided devlink_port. that's the whole thing. leaf. created. slay π
think of it like the little leaf at the end of the branch β the parent hangs out above, and this one's down here doing its leaf thing π
π SEE ALSO π
kernel file ./net/devlink/rate.c β go read it, iykwim π β plus these iconic siblings:
fr fr bestie, if you're making a leaf you're gonna want devl_rate_leaf_destroy(9) eventually. balance. symmetry. the circle of life ππΈ
that's the whole page!! this little gem lives in ./net/devlink, it's dated October 2026, and it goes by devl_rate_leaf_create(9) β mwah, mwah, ok bye ππ§β¨
π¦ 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