s3c_fb_update_palette(9)
β¨ s3c_fb_update_palette β¨
okay bestie, welcome to the s3c_fb_update_palette(9) page from the Kernel API Manual π
this one's short but she's important β it's all about palette registers on the s3c framebuffer driver, and honestly? it's giving "small function, big responsibility." π
πΈ NAME πΈ
s3c_fb_update_palette β set or schedule a palette update. literally that's her whole job, no cap π
π¦ SYNOPSIS π¦
void s3c_fb_update_palette (struct s3c_fb *sfb , struct s3c_fb_win *win
, unsigned int reg , u32 value );
she returns void, she takes four things, she does not elaborate further. iconic behavior honestly β¨
π ARGUMENTS π
sfbβ the hardware information. like, all the hardware deets go here π«Άwinβ the window that's being updated. yes, that window πregβ the palette index being changed β which slot we're messing with βvalueβ the computed palette value. the actual color payload π
π DESCRIPTION π
so here's the vibe: this function changes the value of a palette register, and it's got two whole ways to do it π
- Directly write to the palette β which lowkey has a catch: this requires the palette RAM to be disconnected from the hardware whilst this is in progress. yes bestie, disconnect first, that's not optional π
- Schedule the update for later β the chill, patient option π§
and here's the current situation, fr fr: at the moment, since we have no VSYNC interrupt support, we simply set the palette entry directly. that's it, that's the whole story. no scheduling era yet, we're in our direct-write era π
ngl this is one of those "works fine, will be fancier later" situations β the code path today is the direct-write one because the VSYNC interrupt support isn't there π
π SEE ALSO π
the whole friend group shows up for this one, so let's give them all their moment π the kernel file lives at ./drivers/video/fbdev/s3c-fb.c, and then we've got:
struct s3c_fb_variant(9)struct s3c_fb_win_variant(9)struct s3c_fb_driverdata(9)struct s3c_fb_palette(9)struct s3c_fb_win(9)struct s3c_fb_vsync(9)struct s3c_fb(9)s3c_fb_validate_win_bpp(9)s3c_fb_check_var(9)s3c_fb_calc_pixclk(9)s3c_fb_align_word(9)vidosd_set_size(9)vidosd_set_alpha(9)shadow_protect_win(9)s3c_fb_enable(9)s3c_fb_set_par(9)s3c_fb_setcolreg(9)s3c_fb_blank(9)s3c_fb_pan_display(9)s3c_fb_enable_irq(9)s3c_fb_disable_irq(9)s3c_fb_wait_for_vsync(9)s3c_fb_missing_pixclock(9)s3c_fb_alloc_memory(9)s3c_fb_free_memory(9)s3c_fb_release_win(9)s3c_fb_probe_win(9)s3c_fb_set_rgb_timing(9)s3c_fb_clear_win(9)s3c_fb_remove(9)
okay that's the page!! mwah π this queen comes to you straight from ./drivers/video/fbdev, dated October 2026, and she's brought to you by the Kernel API Manual β go read the rest of the squad, ily, bye π«Άπβ¨
π¦ 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