REG_FIELD_GET64(9)
π REG_FIELD_GET64(9) π
okay so bestie, this is a page from the Kernel API Manual and it's literally about pulling a u64 bitfield value out of stuff. tiny page, immaculate vibes, let's go π«Ά
β¨ NAME β¨
REG_FIELD_GET64 β extract a u64 bitfield value. that's it. that's the whole job. iconic honestly π
πΈ SYNOPSIS πΈ
REG_FIELD_GET64 (__mask , __val );
yes the spacing is giving "written at 3am" but it's valid, don't come for it π
π ARGUMENTS π
__maskβ the shifted mask that defines the field's length and its position. it's the little map that says "the bits you want live riiiight here" πΊοΈ__valβ the value you're extracting the bitfield value from. the source material. the main character π
π¦ DESCRIPTION π¦
so this is a local wrapper for FIELD_GET, and it exists for two whole reasons:
- to force
u64(no cap, it's au64situation) π₯ - for consistency with
REG_GENMASK64β they're a matching set, iykyk β¨
that's it. that's the description. short and slay.
β RETURN β
you get back the masked and shifted value of the field defined by __mask in __val. so it's been masked, it's been shifted, it's ready for its close-up π
π SEE ALSO π
- kernel file
./include/drm/intel/reg_bits.hβ that's where the whole family lives π REG_FIELD_PREP8(9)REG_FIELD_PREP16(9)REG_FIELD_PREP(9)REG_FIELD_GET8(9)REG_FIELD_GET(9)REG_FIELD_MAX(9)
the whole friend group fr fr π«Ά
π reminder bestie: this is a local wrapper, so don't go looking for it in the big wide kernel β it's hanging out in the intel drm headers with its besties.
mwah π that's the page! brought to you from ./include/drm/intel, dated October 2026 β so yes, this manual is lowkey from the future and it's still serving. stan. π§ββοΈβ¨
π¦ 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