rivafb_pan_display(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the fb_info object, 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:

  • xoffset
  • yoffset
  • the FB_VMODE_YWRAP flag

that's it. nothing else. don't come at it with extra fields, it's not looking πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

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