ccw_device_notify(9)
π ccw_device_notify(9) π
okay bestie, welcome to the Kernel API Manual β¨ β today's main character is ccw_device_notify(9), and she's literally here to spill the tea to the device's driver about an event. no cap, that's the whole vibe. π«Ά
β¨ NAME β¨
ccw_device_notify β inform the device's driver about an event π like, the device had a moment and the driver needs to know, periodt.
πΈ SYNOPSIS πΈ
int ccw_device_notify (struct ccw_device *cdev , int event );
that's the whole signature, iykyk π
π¦ ARGUMENTS π¦
cdevβ the device for which an event occurred π« like, the actual device whose little situation we're talking about.eventβ the event that occurred π₯ the thing that happened, the moment, the plot twist.
π RETURN π
okay so she returns one of these, and you will respect each one π:
-EINVALβ if the device is offline or has no driver π no driver, no service, no vibes.-EOPNOTSUPPβ if the device's driver has no notifier registered π like bestie literally didn't leave a callback, can't reach her.NOTIFY_OKβ if the driver wants to keep the device π slay, she's staying, we stan a keeper.NOTIFY_BADβ if the driver doesn't want to keep the device π nope, not interested, bye.
π SEE ALSO π
- Kernel file
./drivers/s390/cio/device_fsm.cβ go read the source bestie, she's right there β
π reminder that-EINVALand-EOPNOTSUPPare not the same thing β one's about the device being offline or driverless, the other's about a missing notifier. don't conflate them, i'm begging π (affectionately)
and that's the page, bestie! π this lil gem lives in ./drivers/s390/cio, dated October 2026, and it's literally ccw_device_notify(9) β go forth and notify responsibly πβ¨π§
π¦ 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