REG_FIELD_MAX(9)
π 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:
REG_FIELD_PREP8(9)REG_FIELD_PREP16(9)REG_FIELD_PREP(9)REG_FIELD_GET8(9)REG_FIELD_GET(9)REG_FIELD_GET64(9)
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
- 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