ccw_device_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 -EINVAL and -EOPNOTSUPP are 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