typec_get_drvdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– typec_get_drvdata β€” Kernel API Manual (9) πŸ’–

okay so bestie, welcome to the typec_get_drvdata page from the Kernel API Manual, section 9, and honestly? it's giving "small but mighty." one function, one job, and she serves. let's get into it 🫢


✨ NAME ✨

typec_get_drvdata β€” return the private driver data pointer ✨

like, the whole personality of this function is "hand me the thing the driver tucked away in there." that's it. that's the vibe check and she passed πŸ‘‘


🌸 SYNOPSIS 🌸

void * typec_get_drvdata (struct typec_port *port );

no cap, that's the whole signature. void * coming back at you, struct typec_port * going in. periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” USB Type-C port 🌈 β€” this is the one and only thing you gotta give her. lowkey the whole relationship hinges on this port.

πŸŽ€ SEE ALSO πŸŽ€

first up, the source of truth, the main character herself: Kernel file ./drivers/usb/typec/class.c ⭐

and then, the entire group chat β€” every one of these is invited to the function party πŸ’œ


bestie bestie bestie β€” read the SEE ALSO list, don't skip it. i know it's long. she's thorough. respect the icon πŸ˜­πŸ’–

and that's the page!! 🌸 this lil cutie lives in ./drivers/usb/typec, dated October 2026, and she's out here being iconic in the Kernel API Manual forever πŸ’…βœ¨πŸŽ€ πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from