rivafb_load_cursor_image(9)
π 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:
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_pan_display(9)rivafb_setcolreg(9)rivafb_fillrect(9)rivafb_copyarea(9)rivafb_imageblit(9)rivafb_cursor(9)
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
- 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