STRUCT CMB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cmb(9) β€” from the Kernel API Manual ✨

okay bestie, so this one's a whole structural moment β€” we're talking about struct cmb, aka the basic channel measurement block, straight out of the Kernel API Manual. main character energy for your s390 measurement vibes πŸŽ€


🌸 NAME 🌸

struct cmb β€” the basic channel measurement block. that's it, that's the icon πŸ’–


✨ SYNOPSIS ✨

struct cmb {
    u16 ssch_rsch_count;
    u16 sample_count;
    u32 device_connect_time;
    u32 function_pending_time;
    u32 device_disconnect_time;
    u32 control_unit_queuing_time;
    u32 device_active_only_time;
    u32 reserved[2];
 };

lowkey a gorgeous little struct, no cap 🫢


πŸ¦‹ Members πŸ¦‹

here's the member-by-member breakdown, and yes we're doing all of them πŸ’…

  • ssch_rsch_count β€” the number of ssch and rsch. both of them. counted. iconic.
  • sample_count β€” the number of samples. it's giving data collection πŸ“
  • device_connect_time β€” the time of device connect. clocked ⏰
  • function_pending_time β€” the time of function pending. the waiting era 😭
  • device_disconnect_time β€” the time of device disconnect. bye bestie πŸ‘‹
  • control_unit_queuing_time β€” the time of control unit queuing. the queue is queuing, fr fr
  • device_active_only_time β€” the time of device active only. exactly what it says, and nothing else πŸ’€
  • reserved β€” unused in basic measurement mode. she's just sitting there, thriving, unbothered 🌈

πŸ’œ Description πŸ’œ

so this is the measurement block as used by the hardware β€” like, the actual hardware's version, not a vibe we made up. 🌸 the fields get described further in z/Architecture Principles of Operation, chapter 17 β€” that's your required reading, iykyk πŸ“š

now the important part, bestie, pay attention πŸ”₯: the cmb area made up from these blocks must be a contiguous array and may not be reallocated or freed. like, do not touch. do not move. do not free. not me catching you trying to reallocate it πŸ™ˆ

and also β€” only one cmb area can be present in the system. one. singular. she's the only one. periodt πŸ‘‘

🧚 SEE ALSO 🧚

a whole friend group, honestly 🫢 go read them all, slay ✨


and that's the whole page, babes πŸ’– this little gem lives over in ./drivers/s390/cio and the docs are dated October 2026 β€” so consider yourself fully caught up in the future. mwah πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from