fotg210_phy_event(9)
β¨ fotg210_phy_event(9) β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is fotg210_phy_event β section 9, kernel-space royalty π
πΈ NAME πΈ
fotg210_phy_event β literally the function that gets called by phy when a VBus event happens π
π SYNOPSIS π
int fotg210_phy_event (struct notifier_block *nb , unsigned long action , void *data );
that's the whole vibe. three args, one int coming back at you π«Ά
π¦ ARGUMENTS π¦
nbβ the notifier block, kween. that's it, that's the whole thing πactionβ the phy action, and lowkey the only two moods here are vbus connect or disconnect πdataβ theusb_gadgetstructure inside fotg210. yes, THE structure π§
π DESCRIPTION π
So the USB Phy calls this bad boy the moment it senses a cable connect or disconnect β like, the second the vibe shifts, fotg210_phy_event is on the scene. no cap, that's the entire job description π₯
β RETURN β
It returns NOTIFY_OK or NOTIFY_DONE. that's the whole menu, bestie π
π SEE ALSO π
- Kernel file
./drivers/usb/fotg210/fotg210-udc.c fotg210_vbus_session(9)β go read that one next, iykyk π
fr fr, if you're poking at fotg210 in ./drivers/usb/fotg210, you already know why this matters π
and that's the page!! π huge shoutout to the Kernel API Manual, dated October 2026, living out of ./drivers/usb/fotg210 β she ate, 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