xxxfb_cursor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xxxfb_cursor (9) ✨

okay so bestie, welcome to the Kernel API Manual entry for xxxfb_cursor β€” yes it's a section 9 page, yes it's about framebuffers, yes we're doing this πŸ’…


🌸 NAME 🌸

xxxfb_cursor β€” OPTIONAL. If your hardware lacks support for a cursor, leave this field NULL.

like, that's the whole vibe. no cursor hardware? no function. don't force it, queen 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int xxxfb_cursor (struct fb_info *info , struct fb_cursor *cursor );

two args, one int coming back at you. that's it, that's the whole signature ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • info β€” the frame buffer structure that represents a single frame buffer. literally the fb's whole identity, one struct, main character energy πŸ‘‘
  • cursor β€” the structure defining the cursor to draw. this is where you tell it what the cursor should look like 🎯

πŸ’œ DESCRIPTION πŸ’œ

so this operation is used to set or alter the properities of the cursor. (yes, "properities", that's how it's spelled in the original and we are NOT fixing it, we respect the source 😌)

returns negative errno on error, or zero on success. so:

  • 0 = slay πŸ’–
  • negative errno = not slay 😭
ngl bestie, if your hardware can't do cursors at all, this whole thing is a no-op β€” see the NAME section: leave the field NULL. don't be out here calling a function that doesn't exist for your chip, it's giving undefined behaviour πŸ’€

🌈 SEE ALSO 🌈

kernel file ./drivers/video/fbdev/skeletonfb.c and honestly the whole skeletonfb bestie squad:

(yes, xxxfb_suspend(9) and xxxfb_resume(9) are listed twice. we're not going to pretend that didn't happen, but we're also not going to edit the manpage. it's iconic, it stays 🫢)


that's the page, bestie!! πŸŽ€πŸ¦‹ source lives at ./drivers/video/fbdev and this whole thing is dated October 2026 β€” mwah, see you in the next manpage πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from