devl_rate_leaf_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 parent struct 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