ci_hdrc_quer...ailable_role(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ci_hdrc_query_available_role(9) ✨

okay so this is a page straight outta the Kernel API Manual bestie, and it's a short one but it's lowkey important πŸ’…


🌸 NAME 🌸

ci_hdrc_query_available_role β€” get the runtime available operation mode πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

enum usb_dr_mode ci_hdrc_query_available_role (struct platform_device *pdev );

like yes, that's the whole signature, she's compact and she knows it ✨


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the platform device of ci core. that's it, that's the whole argument, she's carrying the whole function on her shoulders fr fr 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: the glue layer can get the current operation mode β€” and the modes are host / peripheral / otg πŸŽ€ like, pick your fighter.

⚠️ important bestie: this function should be called after the ci core device has created. don't be out here calling it early, that's not the move 😭

and what does it give you back? it returns the runtime usb_dr_mode. that's the whole point of her. main character energy honestly πŸ‘‘


🌈 SEE ALSO 🌈

the kernel file ./drivers/usb/chipidea/core.c and her whole friend group πŸ’œ:

like, go read them too, they're all iconic in their own way 🧚


mwah πŸ’‹ that's the page! this lil cutie lives in ./drivers/usb/chipidea and she was dated October 2026 β€” yeah, she's from the future and she's still serving πŸ’…βœ¨ bye bestie, go query that role πŸ¦‹πŸ“

πŸ“¦ where this page comes from