usb_role_switch_set_drvdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ usb_role_switch_set_drvdata(9) πŸŽ€

okay bestie, this one's from the Kernel API Manual, and it's giving tiny-helper-big-purpose energy. The function is usb_role_switch_set_drvdata β€” long name, iconic behavior: Assign private data pointer to a switch. slay. πŸ’…


✨ NAME ✨

usb_role_switch_set_drvdata β€” Assign private data pointer to a switch

🌸 SYNOPSIS 🌸

void usb_role_switch_set_drvdata (struct usb_role_switch *sw , void
       *data );

No cap, it returns void β€” it's not handing a value back, it's just doing the assignment vibe. πŸ’–

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sw β€” USB Role Switch. That's the switch getting the private data pointer.
  • data β€” Private data pointer. The pointer itself. Private. Data. No extra lore needed.

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/usb/roles/class.c is right there with the related function besties:


k byeee πŸ‘‹ this cutie page came from ./drivers/usb/roles, dated October 2026, for usb_role_switch_set_drvdata(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from