devlink_shd_put(9)
π devlink_shd_put
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 randomdevlinkβ the description is clear that it's for a reference you obtained viadevlink_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
- 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