ccw_device_get_chid(9)
π ccw_device_get_chid(9) β like, the Kernel API Manual page, bestie β¨
Okay so picture this: you're deep in the s390 corner of the kernel (iykyk), and you need the Channel ID that goes with a specific CHPID. That's literally the whole job of ccw_device_get_chid, and she does it flawlessly. No cap. π
πΈ NAME πΈ
ccw_device_get_chid β obtain the Channel ID associated with a specified CHPID. That's it, that's the vibe check, and she passes. π
β¨ SYNOPSIS β¨
int ccw_device_get_chid (struct ccw_device *cdev , int chp_idx , u16
*chid );
Look at that signature. Iconic. Not me obsessing over the spacing β it's copied exactly, periodt. π«Ά
π¦ ARGUMENTS π¦
cdevβ the device you want the Channel ID for. Your main character. The one you're doing all this for. πchp_idxβ the index of the channel path. Which path? This one, bestie. πchidβ the resulting Channel ID. She's the output, she's the payoff, she's the reason you called this function at all. β¨
π SEE ALSO π
First up, the lore itself lives in the kernel file ./drivers/s390/cio/device_ops.c β go read it, it's giving source of truth. π
And now the full squad, everybody say hi:
ccw_device_set_options_mask(9)ccw_device_set_options(9)ccw_device_clear_options(9)ccw_device_is_pathgroup(9)ccw_device_is_multipath(9)ccw_device_clear(9)ccw_device_start_timeout_key(9)ccw_device_start_key(9)ccw_device_start(9)ccw_device_start_timeout(9)ccw_device_halt(9)ccw_device_resume(9)ccw_device_get_ciw(9)ccw_device_get_path_mask(9)ccw_device_get_chp_desc(9)ccw_device_get_util_str(9)ccw_device_get_id(9)ccw_device_tm_start_timeout_key(9)ccw_device_tm_start_key(9)ccw_device_tm_start(9)ccw_device_tm_start_timeout(9)ccw_device_get_mdc(9)ccw_device_tm_intrg(9)ccw_device_get_schid(9)ccw_device_pnso(9)ccw_device_get_cssid(9)ccw_device_get_iid(9)ccw_device_get_chpid(9)
All of them. Every single one. I would never do you dirty by skipping one. π
Lowkey reminder: everything literal up there β function names, the signature, file paths, numbers β stays exactly as written. The vibe is mine, the facts are the kernel's. π
okay that's the page!! mwah π this lil masterpiece comes from ./drivers/s390/cio, dated October 2026, and it's filed under the Kernel API Manual β go forth and get those Channel IDs, bestie, you're gonna slay π¦πΈπ
π¦ 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