io_subchannel_sch_event(9)
π io_subchannel_sch_event π
okay so this is a page from the Kernel API Manual β yeah, the big serious kernel docs β and we're about to make it make sense. it's giving "s390 cio core" energy, and honestly? iconic. let's go π«Ά
β¨ NAME β¨
io_subchannel_sch_event β literally just process subchannel event. that's the whole vibe. it handles a subchannel event. no cap.
π¦ SYNOPSIS π¦
int io_subchannel_sch_event (struct subchannel *sch , int process );
look at her. two args, one int coming back at you. main character function fr fr π
π ARGUMENTS π
schβ the subchannel. that's it, that's the whole description. she's astruct subchannel *and she's the one we're event-ing on πprocessβ non-zero if this function is called in process context. so like, if you're running in process context, pass something non-zero, bestie. zero means you're not π
π₯ DESCRIPTION π₯
so picture this: an event happened on this subchannel. and not just any event β an unspecified one π the docs literally do not say which. mysterious. slay.
what you do is adjust the data according to the current operational state of the subchannel and the device. like, read the room first, then react. vibe check the subchannel, vibe check the device, then update accordingly β¨
the return value is where it gets good:
- return zero when the event has been handled sufficiently β like, you're done, you ate, periodt π
- return
-EAGAINwhen this function should be called again in process context β iykyk, it's the "run it back" signal π
so basically: handle it, or tell the caller to come back later with process context. no in-between. πΈ
π SEE ALSO π
the kernel file lives at ./drivers/s390/cio/device.c (yes, that's the actual path, don't come for me π«Ά) and these are her friends, her little crew, her mutuals:
ccw_device_set_offline(9)ccw_device_set_online(9)get_ccwdev_by_dev_id(9)ccw_purge_blacklisted(9)ccw_device_wait_idle(9)get_ccwdev_by_busid(9)ccw_driver_register(9)ccw_driver_unregister(9)ccw_device_sched_todo(9)ccw_device_siosl(9)
go read those too, bestie, they're all in the same little ./drivers/s390/cio friend group π
ok that's the whole page!! sourced from the./drivers/s390/ciodirectory, October 2026 vintage β she's fresh, she's documented, andio_subchannel_sch_event(9)is her name. mwah π π
π¦ 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