ccw_device_s..._timeout_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

ccw_device_s..._timeout_key(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this page is literally about ccw_device_start_timeout_key(9), and it's giving timed I/O main character energy ✨. It starts a s390 channel program with timeout and key, no cap.


🌸 NAME 🌸

ccw_device_start_timeout_key β€” start a s390 channel program with timeout and key.

✨ SYNOPSIS ✨

int ccw_device_start_timeout_key (struct ccw_device *cdev , struct ccw1
       *cpa , unsigned long intparm , __u8 lpm , __u8 key , unsigned long flags
       , int expires );

πŸŽ€ ARGUMENTS πŸŽ€

  • cdev β€” target ccw device.
  • cpa β€” logical start address of channel program.
  • intparm β€” user specific interruption parameter; it will be presented back to cdev's interrupt handler. It lets a device driver associate the interrupt with a particular I/O request.
  • lpm β€” defines the channel path to be used for a specific I/O request. A value of 0 will make cio use the opm.
  • key β€” storage key to be used for the I/O.
  • flags β€” additional flags; defines the action to be performed for I/O processing.
  • expires β€” timeout value in jiffies.

πŸ’– DESCRIPTION πŸ’–

Start a S/390 channel program. When the interrupt arrives, the IRQ handler is called, either immediately, delayed (dev-end missing, or sense required) or never (no IRQ handler registered). This function notifies the device driver if the channel program has not completed during the time specified by expires.

If a timeout occurs, the channel program is terminated via xsch, hsch or csch, and the device's interrupt handler will be called with an irb containing ERR_PTR(-ETIMEDOUT). The interruption handler will echo back the intparm specified here, unless another interruption parameter is specified by a subsequent invocation of ccw_device_halt or ccw_device_clear.

πŸ”₯ RETURN πŸ”₯

  • 0 β€” if the operation was successful.
  • -EBUSY β€” if the device is busy, or status pending.
  • -EACCES β€” if no path specified in lpm is operational.
  • -ENODEV β€” if the device is not operational.

😭 CONTEXT 😭

Interrupts disabled 😴, ccw device lock held πŸ”’.

🫢 SEE ALSO 🫢

okay bye bestie 🫢 this one is from source ./drivers/s390/cio, dated October 2026, and it's the ccw_device_s..._timeout_key(9) page. slay. πŸ’–

πŸ“¦ where this page comes from