xxxfb_pan_display(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xxxfb_pan_display πŸ’…

okay so real talk, bestie β€” this is a page from the Kernel API Manual about xxxfb_pan_display, and the very first thing you need to know is right there in the name section, so buckle up 🫢

🌸 NAME 🌸

xxxfb_pan_display β€” NOT a required function. (yes, the manpage is yelling that at you in all caps, it's giving main character energy 😭) it pans the display. that's the whole vibe.


⭐ SYNOPSIS ⭐

int xxxfb_pan_display (struct fb_var_screeninfo *var , struct fb_info
*info );

literally that's it, that's the signature, copy it exactly bestie, no cap πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • var β€” the frame buffer variable screen structure. it's the one holding all the variable-ish screen info ✨
  • info β€” the frame buffer structure that represents a single frame buffer. one struct, one framebuffer, that's her πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay 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. very demure, very mindful 🌸

and if those values don't fit? it returns -EINVAL. no discussion, no negotiation, just -EINVAL πŸ’€

as for the return value: negative errno on error, or zero on success. that's the whole story, periodt πŸ’…


🌈 SEE ALSO 🌈

kernel file ./drivers/video/fbdev/skeletonfb.c β€” go read it, it's iconic ⭐


and that's the page!! sourced straight from ./drivers/video/fbdev, dated October 2026, from the Kernel API Manual β€” go slay your framebuffer bestie, mwah πŸ§šπŸ’œ

πŸ“¦ where this page comes from