hw_port_test_set(9)
π hw_port_test_set β the kernel API manual, bestie edition π
Okay so real talk, this is hw_port_test_set(9) from the Kernel API Manual, and she's short but she's iconic. Let's get into it β¨
β¨ NAME β¨
hw_port_test_set β writes port test mode (execute without interruption) π«Ά
Like, no cap, that parenthetical is doing heavy lifting: execute without interruption. Periodt.
πΈ SYNOPSIS πΈ
int hw_port_test_set (struct ci_hdrc *ci , u8 mode );
That's the whole vibe check right there β returns an int, takes two things, we move π
π¦ ARGUMENTS π¦
ciβ the controller π (yes bestie, the controller, main character energy fr)modeβ the new value π like, the fresh setting you're handing over
π DESCRIPTION π
So what does she actually do? This function returns an error code. That's it. That's the sentence. π Not me expecting a whole novel and getting one clean line β but honestly? Respect. Lowkey refreshing ngl.
Heads up bestie: this is literally all the page says about the behaviour, so I'm not gonna sit here and invent lore for you. The description says it returns an error code, and that's the tea π
π SEE ALSO π
The kernel file you wanna peek at is ./drivers/usb/chipidea/core.c β go read her, she has context π
And then the whole friend group of related functions, in the order the page gives them:
hw_read_intr_enable(9)hw_read_intr_status(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)ci_hdrc_query_available_role(9)
iykyk π That's a whole squad right there β hw_port_test_get(9) is literally her counterpart, go say hi π§
And that's the page, bestie! Sending you off with a cute little sign-off: this one lives in ./drivers/usb/chipidea, dated October 2026, and it's filed under hw_port_test_set(9) β Slay, go read the source π
π₯
π¦ 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