usb_role_switch_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb_role_switch_put(9) β€” the Kernel API Manual moment

okay so bestie, this one's a kernel API page, and honestly? it's a short one, we love a low-effort icon ✨


🌸 NAME 🌸

usb_role_switch_put β€” Release handle to a switch

literally what it says on the tin: you're letting go of a handle to a switch 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void usb_role_switch_put (struct usb_role_switch *sw );

that's the whole vibe check, no cap πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sw β€” USB Role Switch. that's your switch, your main character, the thing you're holding a handle to πŸŽ€

✨ DESCRIPTION ✨

Decrement reference count for sw.

that's it. that's the whole description. it's giving "short and slay" πŸ’€ lowkey the tiniest little function description and we're obsessed. you call it, the refcount for sw goes down by one. periodt 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/usb/roles/class.c β€” and also these absolute icons:

like, go read those too fr fr πŸ§šπŸ’œ


heads up bestie: since all this does is decrement a reference count, you're gonna wanna make sure you actually should be dropping that handle β€” the page doesn't say what happens if you over-put, but refcounts being what they are, just... don't be weird about it πŸ™ˆ

and that's the page!! sources say it lives in ./drivers/usb/roles, dated October 2026, and it's part of the Kernel API Manual πŸ’– bye bestie, go decrement responsibly πŸ¦‹βœ¨

πŸ“¦ where this page comes from