STRUCT CMB_OPERATIONS(9)
struct cmb_operations(9) π
okay bestie, welcome to the Kernel API Manual β this is the page for struct cmb_operations, aka the little crew of functions you use depending on cmb_format. slay β¨
πΈ NAME πΈ
struct cmb_operations β functions to use depending on cmb_format
β¨ SYNOPSIS β¨
struct cmb_operations {
int (*alloc) (struct ccw_device *);
void (*free) (struct ccw_device *);
int (*set) (struct ccw_device *, u32);
u64 (*read) (struct ccw_device *, int);
int (*readall)(struct ccw_device *, struct cmbdata *);
void (*reset) (struct ccw_device *);
};
π Members π
allocβ signature:int (*alloc) (struct ccw_device *);β allocate memory for a channel measurement block, either with the help of a special pool or withkmalloc. memory-getting moment β¨freeβ signature:void (*free) (struct ccw_device *);β free memory allocated withalloc. no leaks, bestie π«Άsetβ signature:int (*set) (struct ccw_device *, u32);β enable or disable measurement. on/off era π₯readβ signature:u64 (*read) (struct ccw_device *, int);β read a measurement entry at an index.readallβ signature:int (*readall)(struct ccw_device *, struct cmbdata *);β read a measurement block in a common format. the whole block, not just a lil peek πresetβ signature:void (*reset) (struct ccw_device *);β clear the data in the associated measurement block and reset its time stamp.
π¦ Description π¦
Most of these functions operate on a struct ccw_device. There is only one instance of struct cmb_operations because the format of the measurement data is guaranteed to be the same for every ccw_device. iconic consistency behavior, honestly π
β¨
π SEE ALSO π
Kernel file ./drivers/s390/cio/cmf.c; enum cmb_format(9), struct cmb_area(9), struct cmb(9), struct cmbe(9), enable_cmf(9), __disable_cmf(9), disable_cmf(9), cmf_read(9), cmf_readall(9), cmf_reactivate(9).
mwah π this cutie is sourced from ./drivers/s390/cio, dated October 2026, and itβs serving struct cmb_operations(9) realness β periodt ππ
π¦ 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