cp_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cp_init(9) β€” Kernel API Manual energy πŸ’–

okay bestie, welcome to the Kernel API Manual page for cp_init(9) β€” the little function that gets your channel program its ccwchain moment. no cap, let's get into it.

πŸŽ€ NAME πŸŽ€

cp_init β€” allocate ccwchains for a channel program.

✨ SYNOPSIS ✨

int cp_init (struct channel_program *cp , union orb *orb );

🌸 ARGUMENTS 🌸

  • cp β€” the channel_program on which to perform the operation. that's the main character right there.
  • orb β€” the control block for the channel program from the guest.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this creates one or more ccwchain(s), and copies the raw data of the target channel program from orb->cmd.iova to the new ccwchain(s). literally the whole vibe.

Limitations:

  1. Supports idal(c64) ccw chaining.
  2. Supports 4k idaw.

⭐ RETURN ⭐

0 on success and a negative error value on failure. that's it, that's the return lore πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/s390/cio/vfio_ccw_cp.c β€” and these absolute icons:


🫢 cute sign-off: source/version ./drivers/s390/cio, dated October 2026, and the page is cp_init(9). bye bestie, go be iconic with your channel programs πŸ’…βœ¨

πŸ“¦ where this page comes from