dat_set_cmma_bits(9)
π
dat_set_cmma_bits β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual page for dat_set_cmma_bits(9), and yes you're gonna get it, because this one is genuinely not that deep once we vibe through it π«Ά
β¨ NAME β¨
dat_set_cmma_bits β literally here to set the CMMA bits for a whole range of guest pages π
πΈ SYNOPSIS πΈ
int dat_set_cmma_bits (struct kvm_s390_mmu_cache *mc , union asce asce ,
gfn_t gfn , unsigned long count , unsigned long mask , const uint8_t
*bits );
π ARGUMENTS π
mcβ the cache used for allocations, she's the one holding the bag πasceβ the ASCE of the guest. yep. that's the whole description. iconic of her honestly β¨gfnβ the guest frame of the first page whose CMMA bits are getting set (the original says "fist" and honestly? typo queen behavior, but she means first π)countβ how many pages need to be processed. do the math, bestie, that's how many πmaskβ which PGSTE bits should be set π―bitsβ points to an array with the CMMA attributes π
π¦ DESCRIPTION π¦
so this function sets the CMMA attributes for the given pages. that's the whole mission, main character energy fr fr π
but here's the little plot twist β if the input buffer has zero length, no action is taken. nothing. zip. nada. she simply does not move π otherwise, the attributes are set and the mm->context.uses_cmm flag is set. so like, if anything happens at all, that flag is coming along for the ride β¨
each byte in bits contains new values for bits 32-39 of the PGSTE. and currently β key word currently β only the fields NT and US are applied. that's the vibe check, and only those two passed π
β RETURN β
0in case of success π- a negative error value otherwise π
π SEE ALSO π
go off and read these too, iykyk π§
- Kernel file
./arch/s390/kvm/gmap/dat.c dat_crstep_xchg_atomic(9)dat_entry_walk(9)_dat_walk_gfn_range(9)dat_test_age_gfn(9)dat_perform_essa(9)
lowkey reminder from your girl: no cap, the facts above are the facts. run it, don't run it, that's on you π
okay that's the page!! and for the cute sign-off: this little beauty lives in ./arch/s390/kvm/gmap, dated October 2026 β screenshot it, frame it, obsess ππ
π¦ 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