devlink_shd_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is a page from the Kernel API Manual (section 9, kernel devs, you already know ✨) and it's literally the shortest little baddie β€” it's just here to tell you how to let go of a shared devlink instance. releasing references is self-care, bestie 🫢


🌸 NAME 🌸

devlink_shd_put β€” drop a reference on a shared devlink instance, no cap πŸ’…


✨ SYNOPSIS ✨

void devlink_shd_put (struct devlink *devlink );

that's it. that's the whole vibe. a void function, so it gives you nothing back β€” it just does the thing and leaves πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • devlink β€” the shared devlink instance in question, queen πŸ‘‘ it's the one you're releasing a reference on

πŸ’– DESCRIPTION πŸ’–

so basically: this releases a reference on a shared devlink instance that you got earlier via devlink_shd_get. that's the whole plot. you grabbed a reference, you're done with it, now you put it back β€” balance restored, main character energy 🌈

like, think of devlink_shd_get as checking a book out of the library and devlink_shd_put as returning it. except the book is a shared devlink instance and the library is the kernel. iykyk πŸ’€

ngl bestie, don't just call this on any random devlink β€” the description is clear that it's for a reference you obtained via devlink_shd_get. match your gets and your puts, fr fr πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

  • the kernel file ./net/devlink/sh_dev.c β€” that's where the lore lives πŸ“–
  • devlink_shd_get(9) β€” the one that gives you the reference in the first place, the origin story πŸ’«
  • devlink_shd_get_priv(9) β€” the private-flavoured sibling, obsessed 🧚

alright bestie, that's the whole page πŸ’œ it comes to you from ./net/devlink and it's dated October 2026 β€” so yeah, fresh off the kernel presses, iconic behavior honestly. go forth and release your references responsibly, mwah πŸ˜­πŸ’–πŸŽ€

πŸ“¦ where this page comes from