cp_update_scsw(9)
πΈ NAME πΈ
okay so this is cp_update_scsw(9) from the Kernel API Manual, and it does exactly one iconic little job: update scsw for a channel program. π
no cap.
β¨ SYNOPSIS β¨
void cp_update_scsw (struct channel_program *cp , union scsw *scsw );
π ARGUMENTS π
cpβ thechannel_programyou're performing the operation on. main character energy, obviously.scswβ the I/O results of the channel program, and also the target that gets updated. it's giving dual-purpose queen. π
π¦ DESCRIPTION π¦
okay so bestie, scsw contains the I/O results of the channel program that cp points to. but here's the plot twist π: what scsw->cpa stores is a host physical address, which is literally meaningless for the guest β and the guest is the one waiting for the I/O results. rude, honestly.
this function updates scsw->cpa to its corresponding guest physical address. that's the whole glow-up. β¨
π SEE ALSO π
- Kernel file
./drivers/s390/cio/vfio_ccw_cp.c ccwchain_calc_length(9)cp_init(9)cp_free(9)cp_prefetch(9)cp_get_orb(9)cp_iova_pinned(9)
mwah π this cutie comes from source/version ./drivers/s390/cio, dated October 2026, and it's cp_update_scsw(9) β periodt. π«Άπ·
π¦ 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