enable_cmf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enable_cmf β€” bestie, we're turning the measurement ON

okay so real talk, this page is from the Kernel API Manual (yes, the 9 section, kernel-space girlies only ✨) and it's called enable_cmf, which is basically "channel measurement" but make it a function. let's get into it πŸŽ€


🌸 NAME 🌸

enable_cmf β€” switch on the channel measurement for a specific device πŸ’«


✨ SYNOPSIS ✨

int enable_cmf (struct ccw_device *cdev );

one function, one argument, and it returns an int. she's simple, she's iconic πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cdev β€” the ccw device you wanna enable. like, the specific device. the main character of this whole operation 🫢

πŸ’– DESCRIPTION πŸ’–

so what she does is: enable channel measurements for cdev. that's it, that's the vibe ✨

but here's the plot twist, bestie β€” if you call this on a device where channel measurement is already enabled, it triggers a reset of the measurement data. no cap. so it's not a no-op, it's a glow-up-with-amnesia situation πŸ’€


πŸ”₯ RETURN πŸ”₯

  • 0 for success πŸŽ‰
  • or a negative error value 😭 (yes, negative. read the number, bestie, don't just check for truthiness)

⭐ CONTEXT ⭐

non-atomic β€” so she is not atomic, okay? she's not out here being all indivisible and untouchable. plan accordingly πŸ’…


🌈 SEE ALSO 🌈

the whole friend group, fr fr:

they're all in the ./drivers/s390/cio clique, iykyk 🧚


and that's the whole page, babe β€” sourced straight from ./drivers/s390/cio, stamped October 2026, no notes. go enable some measurements, you got this πŸ“πŸ’œ

πŸ“¦ where this page comes from