ccw_device_get_chp_desc(9)
π ccw_device_get_chp_desc(9) β the kernel API manual, bestie edition π
okay so real talk, this one's from the Kernel API Manual and it's giving "tiny function, very specific job" and honestly? we stan a specialist. πΈ
β¨ NAME β¨
ccw_device_get_chp_desc β returns a newly allocated channel-path descriptor, fresh out the wrapper, no cap π
π SYNOPSIS π
struct channel_path_desc_fmt0 * ccw_device_get_chp_desc (struct
ccw_device *cdev , int chp_idx );
like, exactly that, don't @ me π
π¦ ARGUMENTS π¦
cdevβ the device you want the descriptor for. it's the main character here πchp_idxβ the index of the channel path. yes it's a number, no you can't skip it π
π DESCRIPTION π
so when it works, it returns a newly allocated copy of the channel-path description data that belongs to the channel path you pointed at. copy, as in yours to keep, as in somebody allocated that memory for you, iykyk π«Ά
and if something goes sideways? it returns NULL. on error. that's it, that's the whole vibe. no cap. π
lowkey important: NULL means error, so check it before you go dereferencing like it's nothing π
π₯ SEE ALSO π₯
the kernel file that lives at:
./drivers/s390/cio/device_ops.c
and the whole friend group, fr fr β go say hi to:
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_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)ccw_device_get_chid(9)
and that's the whole page, bestie π§ this little icon lives in ./drivers/s390/cio, dated October 2026, and it's filed under ccw_device_get_chp_desc(9) β go forth and get those descriptors β¨π
π¦ 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