dat_set_cmma_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 in case of success πŸŽ‰
  • a negative error value otherwise 😭

🌈 SEE ALSO 🌈

go off and read these too, iykyk 🧚


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