decode_var(9)
π decode_var(9) β the kernel API glow-up
Okay bestie, welcome to decode_var(9), a kernel API manual page and honestly kind of a main character in the i810 framebuffer saga. Grab your iced coffee π, we're reading kernel docs together.
β¨ NAME β¨
decode_var β modify par according to contents of var
Like, that's the whole vibe. var walks in, par gets a whole new personality. π¦
π SYNOPSIS π
void decode_var (const struct fb_var_screeninfo *var , struct i810fb_par
*par );
Yes that's the function signature, copy it exactly, no cap. π
πΈ ARGUMENTS πΈ
varβ pointer tofb_var_screeninfo. That's your source of truth, the blueprint, the inspo board.parβ pointer toi810fb_par. That's the one getting made over. π«Ά
π DESCRIPTION π
So here's the tea: based on the contents of var, par will be dynamically filled up. Not statically, not halfway, dynamically. β¨
And par contains all information necessary to modify the hardware β like, everything you need, the full fit, head to toe. It's giving "I have everything I need in my bag" energy. π
π₯ SEE ALSO π₯
Kernel file ./drivers/video/fbdev/i810/i810_main.c β that's where the magic lives, go read it, iykyk.
And the whole friend group π:
i810_screen_off(9)i810_dram_off(9)i810_protect_regs(9)i810_load_pll(9)i810_load_vga(9)i810_load_vgax(9)i810_load_2d(9)i810_hires(9)i810_load_pitch(9)i810_load_color(9)i810_load_regs(9)get_line_length(9)i810_calc_dclk(9)i810_enable_cursor(9)i810_init_cursor(9)i810_round_off(9)set_color_bitfields(9)i810_check_params(9)encode_fix(9)i810fb_getcolreg(9)i810_init_monspecs(9)i810_init_defaults(9)i810_init_device(9)
Ngl, this page is short but it ate. Every one of these cross-refs is a real one, go click around, the rabbit hole is worth it. π§
That's a wrap, bestie! This little gem came from ./drivers/video/fbdev/i810 and it's dated October 2026. Slay, decode_var(9), you icon. πππ
π¦ 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