typec_find_port_data_role(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for typec_find_port_data_role(9) and it's short but it serves πŸ’…


🌸 NAME 🌸

typec_find_port_data_role β€” go get that typec port data capability, queen πŸ‘‘


✨ SYNOPSIS ✨

int typec_find_port_data_role (const char *name );

literally just hand it a name and it goes looking, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the port data capability string, aka the name you're matching against. that's the whole vibe check right there πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this routine is used to find the typec_port_data by its string name. you give it the name, it finds the thing. icon behaviour, honestly ✨

and then β€” the payoff πŸŽ‰ β€” it returns typec_port_data if success, otherwise a negative error code. so like, if it ate, you get your data; if it didn't, you get a negative error code and you go 😭.

ngl bestie, negative error code means it did not slay, so check your name string before you start spiralling πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/usb/typec/class.c β€” that's where the magic lives 🧚

and the whole friend group, fr fr:

like, the whole typec extended universe πŸ˜­πŸ’œ


and that's the page, bestie πŸŽ€ it lives in ./drivers/usb/typec, stamped October 2026 β€” main character documentation energy only β­πŸ’…πŸ¦‹

πŸ“¦ where this page comes from