s3c_fb_align_word(9)
π s3c_fb_align_word(9) β the Kernel API Manual glow-up β¨
okay bestie, welcome to the s3c_fb_align_word(9) page from the Kernel API Manual π this one's short and sweet and honestly kinda iconic for it.
β¨ NAME β¨
s3c_fb_align_word β align a pixel count so it lands right on a word boundary π«Ά
πΈ SYNOPSIS πΈ
int s3c_fb_align_word (unsigned int bpp , unsigned int pix );
like, that's literally the whole thing. two unsigned ints in, one int out, no drama π
π¦ ARGUMENTS π¦
bppβ the number of bits per pixel π¨ (yes, bits per pixel, that's the bpp, you already knew that)pixβ the value that's getting aligned π
β DESCRIPTION β
so here's the vibe: you hand it a pixel count, and it aligns that count so it starts on a 32bit word boundary β¨ that's it, that's the whole function. no cap, some functions are just little guys doing one job and doing it slay π
π SEE ALSO π
the whole friend group of s3c-fb lore lives over in the kernel file ./drivers/video/fbdev/s3c-fb.c β go say hi π§
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)vidosd_set_size(9)vidosd_set_alpha(9)shadow_protect_win(9)s3c_fb_enable(9)s3c_fb_set_par(9)s3c_fb_update_palette(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)
π reminder bestie: every single one of those is a real page, do not skip the reading. iykyk π
okay that's the whole page, love u, go read the source π«Ά this cutie comes to you from ./drivers/video/fbdev, dated October 2026, dropped under the Kernel API Manual banner β 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