enable_cmf(9)
π 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β theccwdevice 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 π₯
0for 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:
- Kernel file
./drivers/s390/cio/cmf.c enum cmb_format(9)struct cmb_operations(9)struct cmb_area(9)struct cmb(9)struct cmbe(9)__disable_cmf(9)disable_cmf(9)cmf_read(9)cmf_readall(9)cmf_reactivate(9)
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
- 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