typec_set_data_role(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… typec_set_data_role β€” the manual page, but make it make sense ✨

okay so bestie, you found typec_set_data_role(9) β€” it's a Linux kernel API manual page, and honestly? it's short and sweet. no cap. let's get into it 🫢


🌸 NAME 🌸

typec_set_data_role β€” report a data role change, periodt πŸ’…


✨ SYNOPSIS ✨

void typec_set_data_role (struct typec_port *port , enum typec_data_role
role );

that's the whole signature, character for character, don't come for me 😭 β€” yes there's a space before the comma, it's in the original, leave her alone πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the USB Type-C Port where the role got changed πŸ‘‘ like, this is the port that's going through it
  • role β€” the new data role, the fresh identity, the main character energy ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so this routine is the one port drivers use to report data role changes. that's it. that's the whole vibe. it's giving "messenger, not decision-maker" β€” you're just telling the kernel "hey bestie, the data role changed" 🧚

no extra lore, no hidden options, no gotchas. the manpage is literally one sentence and honestly? iconic for that 🌈


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/usb/typec/class.c β€” and here's the full squad of related calls, all of them, zero skipped, because we don't do that here πŸ’–

like, that's a lot of friends. she's well-connected πŸ’€βœ¨


ngl there are no warnings, no exit statuses, no env vars, no bugs listed on this one β€” it's just a clean little reporting function. savour it πŸ“

and that's the tea β˜• this page comes out of ./drivers/usb/typec and it's dated October 2026 β€” so yeah, future vibes, we stay ahead of the curve πŸ’œ bye bestie, go report those data role changes responsibly πŸŽ€

πŸ“¦ where this page comes from