cp_get_orb(9)
π cp_get_orb(9) β Kernel API Manual, bestie edition π
okay so real talk, this one is short and sweet and honestly kind of iconic for it. it's from the Kernel API Manual, it's called cp_get_orb(9), and it does exactly one (1) thing. main character energy, no filler. π
β¨ NAME β¨
cp_get_orb β get the orb of the channel program π¦
like, literally, that's the whole job. get the orb. get it. π
πΈ SYNOPSIS πΈ
union orb * cp_get_orb (struct channel_program *cp , struct subchannel *sch );
yup, that's the signature, and yes you pass it two whole things. both of them matter. π
π§ ARGUMENTS π§
cpβ thechannel_programwe're doing the operation on. this is the one holding the orb, so like, be nice to it π«Άschβ thesubchannelthe operation gets performed against. yeah, it gets a subchannel too. both. always both β¨
ngl, both args are required and neither is optional, so don't come for me in the replies asking if you can skip one. you can't. π
π₯ DESCRIPTION π₯
so here's the tea: this function returns the address of the updated orb of the channel program. that's it. that's the vibe check and it PASSED. β
and why do we care?? because channel I/O device drivers could use this orb to issue a ssch. that's the whole point bestie, that's the assignment and it ATE. π
lowkey important: it gives you back the address of the updated orb, not some musty stale copy. updated. keep that word in your notes. π
π SEE ALSO π
iykyk, here's the whole friend group π β these all live over in the kernel file ./drivers/s390/cio/vfio_ccw_cp.c:
fr fr, go read cp_init(9) and cp_free(9) first, they're the responsible ones. π§
kisses, this page was served fresh from ./drivers/s390/cio, dated October 2026, and it'll always answer to cp_get_orb(9). slay, stay hydrated, and remember to free your channel programs πβ¨π
π¦ 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