dc_is_fp_enabled(9)
π dc_is_fp_enabled(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the little function that tells you whether your code is already wrapped up all cozy under FPU protection or not. it's giving "are we safe rn or are we about to find out" energy π«Ά
πΈ NAME πΈ
dc_is_fp_enabled β literally just checks if FPU protection is enabled π
β SYNOPSIS β
bool dc_is_fp_enabled (void );
π ARGUMENTS π
voidβ no arguments, bestie. zero. nada. it takes nothing and it needs nothing π
π¦ DESCRIPTION π¦
so this function tells you if the code is already under FPU protection or not. that's it, that's the whole vibe check β
here's the tea: a function that works as an API for a set of FPU operations can use this function for checking if the caller invoked it after DC_FP_START. if you want to see it in action, go take a look at the dcn20_fpu.c file β icon behaviour, honestly π₯
it's similar to dc_assert_fp_enabled, but does not assert β instead it just returns the status. so like, same energy, way more chill, no dramatic exit π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.cDC FPU manipulation overview(9) dc_assert_fp_enabled(9)dc_fpu_begin(9)dc_fpu_end(9)
ngl if you're poking around in the DC FPU code, read the whole crew above before you start anything β iykyk π
πΈ that's the whole page, bestie πΈ β this cutie lives at ./drivers/gpu/drm/amd/display/... and the manual's dated October 2026. periodt. π
β¨
π¦ 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