REG_FIELD_MAX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… REG_FIELD_MAX πŸ’…

okay so welcome to the Kernel API Manual, section 9, bestie β€” this is the page for REG_FIELD_MAX, and it is literally here to produce the maximum value representable by a field. slay. ✨


πŸŽ€ NAME πŸŽ€

REG_FIELD_MAX β€” produce the maximum value representable by a field. periodt.


✨ SYNOPSIS ✨

REG_FIELD_MAX (__mask );

🌸 ARGUMENTS 🌸

  • __mask β€” the shifted mask defining the field's length and position. that's the whole vibe check right there 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is a local wrapper for FIELD_MAX, and its whole job is to return the maximum bit value that can be held in the field specified by _mask β€” yes, _mask, exactly like that β€” and then cast it to u32 for consistency with other macros. no cap, that's the entire lore. πŸ’–


πŸ’– SEE ALSO πŸ’–

the kernel file is ./include/drm/intel/reg_bits.h, and the related icons are:

go off, family. 🌈


xoxo, your local Unix bestie πŸ’… β€” this REG_FIELD_MAX(9) moment is brought to you by ./include/drm/intel, dated October 2026. πŸŽ€βœ¨

πŸ“¦ where this page comes from