ci_hdrc_quer...ailable_role(9)
β¨ 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 π:
hw_read_intr_enable(9)hw_read_intr_status(9)hw_port_test_set(9)hw_port_test_get(9)_ci_usb_phy_init(9)ci_usb_phy_exit(9)ci_usb_phy_init(9)ci_platform_configure(9)hw_controller_reset(9)hw_device_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms