rivafb_load_cursor_image(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rivafb_load_cursor_image(9) πŸ’…

okay so bestie, we're in the Kernel API Manual today and the star of the show is rivafb_load_cursor_image β€” the function whose whole entire job is loading a cursor image to hardware. yes, the little arrow thingy. she's iconic. πŸ–±οΈβœ¨


πŸ¦‹ NAME πŸ¦‹

rivafb_load_cursor_image β€” load cursor image to hardware


🌸 SYNOPSIS 🌸

void rivafb_load_cursor_image (struct riva_par *par , u8 *data8 , u16 bg
, u16 fg , u32 w , u32 h );

like, that's the whole signature. short queen. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • par β€” pointer to private data. yup, the private data. give her the pointer and she'll handle it. 🫢
  • data8 β€” address to monochrome bitmap (1 = foreground color, 0 = background). it's giving minimalist. black and white. two moods only. πŸ–€πŸ€
  • bg β€” background color (ARGB1555) β€” heads up, the alpha bit determines opacity. so the alpha bit is literally the vibe check for transparency. πŸ’€
  • fg β€” foreground color (ARGB1555). the main character color, ngl. ✨
  • w β€” width of cursor image in pixels. πŸ“
  • h β€” height of cursor image in scanlines. πŸ“

πŸ’– DESCRIPTION πŸ’–

so what she does: loads the cursor image based on a monochrome source and mask bitmap. the image bits decide the color of the pixel β€” 0 for background, 1 for foreground. periodt. simple as that. 🎯

and the lowkey best part? only the affected region (as determined by the w and h parameters) gets updated. no cap, she's not out here redrawing the whole screen. efficient icon. πŸ”₯

CALLED FROM: rivafb_cursor β€” that's her caller, that's her origin story. iykyk. πŸ’«


🌈 SEE ALSO 🌈

kernel file ./drivers/video/fbdev/riva/fbdev.c β€” go read it bestie, it's right there. πŸ“–

then the whole squad, fr fr:


ok that's the whole page, no notes. cursor loaded, facts intact, vibe immaculate. πŸ’…πŸ¦‹

signing off from ./drivers/video/fbdev/riva β€” the October 2026 edition of the Kernel API Manual, rivafb_load_cursor_image(9), mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from