rivafb_pan_display(9)
π rivafb_pan_display(9) π
okay so bestie, welcome to the rivafb_pan_display page from the Kernel API Manual β yes, that's the manual name, and yes, it's giving "ancient scrolls but make it cute". this is a function, it lives in the kernel, and it's about panning the display. let's get into it β¨
πΈ NAME πΈ
rivafb_pan_display β
literally that's it, the NAME section gives us the function name and then just... nothing. no one-liner. the manpage said "figure it out yourself" and honestly? iconic. π
π¦ SYNOPSIS π¦
int rivafb_pan_display (struct fb_var_screeninfo *var , struct fb_info
*info );
so it returns an int, takes two pointers, and that's the whole vibe. let's meet the cast π
π ARGUMENTS π
varβ the standard kernel fb changeable data. yes, that's the whole description. it's the "changeable" stuff for the framebuffer, bestie, that's what we're working with πinfoβ pointer to thefb_infoobject, and this one's holding all the info for the current riva board. like, specifically the riva board you're on right now. no cap π
β¨ DESCRIPTION β¨
so what does it actually do? it pans (or wraps β depends on the vmode field, iykyk) the display, using the xoffset and yoffset fields of the var structure. sliding the visible window around, basically, the main character move of framebuffer land π
and here's the important bit: if the values don't fit, return -EINVAL. no fit, no pan. that's the deal π
also, quick vibe check on scope β this call looks only at:
xoffsetyoffset- the
FB_VMODE_YWRAPflag
that's it. nothing else. don't come at it with extra fields, it's not looking π₯
π SEE ALSO π
- Kernel file
./drivers/video/fbdev/riva/fbdev.c rivafb_load_cursor_image(9)riva_wclut(9)riva_rclut(9)riva_save_state(9)riva_load_state(9)riva_load_video_mode(9)rivafb_do_maximize(9)riva_get_cmap_len(9)rivafb_setcolreg(9)rivafb_fillrect(9)rivafb_copyarea(9)rivafb_imageblit(9)rivafb_cursor(9)
the whole riva friend group, fr fr π«Ά
and that's the page, bestie! sign-off time: this one comes from ./drivers/video/fbdev/riva, dated October 2026 β so like, future-core of the kernel docs πβ¨ hope the panning slayed. mwah π
π¦ 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