hw_read_otgsc(9)
β¨ hw_read_otgsc(9) β Kernel API Manual β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is hw_read_otgsc(9) π yes that's a section 9, we're doing kernel-internal stuff, very demure, very mindful, very main-character π
π NAME π
hw_read_otgsc β literally just returns the otgsc register bits value π«Ά like that's the whole job and she ate
πΈ SYNOPSIS πΈ
u32 hw_read_otgsc (struct ci_hdrc *ci , u32 mask );
like look at her, returning a u32 and everything π₯
π¦ ARGUMENTS π¦
ciβ the controller π this is the whole controller thing you're poking at, no capmaskβ a bitfield mask π yeah it masks bits, it's a mask, iykyk
β SEE ALSO β
the kernel file to go look at is ./drivers/usb/chipidea/otg.c π and honestly the whole friend group is there, go say hi:
hw_write_otgsc(9)πci_otg_role(9)β¨hw_wait_vbus_lower_bsv(9)πci_otg_work(9)πci_hdrc_otg_init(9)π§ci_hdrc_otg_destroy(9)π
ngl that's genuinely the entire page, she's short and she knows it π
and that's the vibe check bestie π«Ά this little gem lives over in ./drivers/usb/chipidea, it's dated October 2026, and yes the footer is serving hw_read_otgsc(9) right back at you like the icon she is π periodt π
π¦ 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