devlink_regi...pshot_id_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the kernel API manual, and specifically to devlink_region_snapshot_id_put(9) β€” yes the title's a little truncated in the header (devlink_regi...pshot_id_put(9)), she's just being mysterious, it's her brand πŸŽ€. This is the page that tells you how to put a snapshot ID reference down. Gently. Responsibly. Like putting your emotional baggage down after therapy πŸ¦‹.


🌸 NAME 🌸

devlink_region_snapshot_id_put β€” put snapshot ID reference

Like, "put" as in release, not "put" as in "put it on the shelf". Think of it as the anti-get. The vibe is closure πŸ’….


⭐ SYNOPSIS ⭐

void devlink_region_snapshot_id_put (struct devlink *devlink , u32 id );

That's the whole function, no cap. Returns void, so she's not giving you any feedback. Iconic, honestly.


πŸŽ€ ARGUMENTS πŸŽ€

  • devlink β€” devlink. (Yeah bestie, that's genuinely it β€” it's the struct devlink * you're working with. She's not complicated, she's just there 🫢)
  • id β€” id to release reference on. That's the u32 snapshot ID you're done with, and by "done" I mean you've finished creating snapshots with it and you're letting the reference go πŸ™ˆ.

✨ DESCRIPTION ✨

okay so here's the tea πŸ”₯: this should be called by a driver after finishing creating snapshots with an id. That's the moment. That's the whole assignment.

And the way that this slays is: doing so ensures that the ID can later be released in the event that all snapshots using it have been destroyed. So you're not releasing the ID yourself right now β€” you're setting it up so that later, when every single snapshot using it is gone, the ID can be released. It's giving ✨responsible bookkeeping✨. It's giving "I closed the loop, you're welcome" πŸ‘‘.

ngl, the important part is the ordering: call it after you've finished creating snapshots with the id. Don't be out here doing it first, bestie 😭.

🌈 SEE ALSO 🌈

Kernel file ./net/devlink/region.c, plus all her friends in the region.c cinematic universe πŸ’œ:

fr fr, go read them, they're literally the same friend group 🧚.


πŸ“ cute little sign-off: this page lives under ./net/devlink, and it's dated October 2026 β€” so she's from the future, or at least from a very confident version of the present. Either way, slay πŸ’–βœ¨

periodt. go put that reference down responsibly πŸ’…

πŸ“¦ where this page comes from