drm_mode_addfb2(9)
π drm_mode_addfb2 π
okay so bestie, welcome to the drm_mode_addfb2(9) page β yeah it's section 9 of the Kernel API Manual, the kernel-internals girlies' home turf. sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
drm_mode_addfb2 β add an FB to the graphics configuration π₯
π¦ SYNOPSIS π¦
int drm_mode_addfb2 (struct drm_device *dev , void *data , struct
drm_file *file_priv );
that's it. that's the whole signature. she's giving minimal, she's giving efficient, we love her for it π
π ARGUMENTS π
devβ the drm device for the ioctl. your main character device, literally β¨dataβ data pointer for the ioctl. just the pointer, the payload, the vessel π«file_privβ drm file for the ioctl call. your file, your vibe, your private little handle πΈ
π DESCRIPTION π
Add a new FB to the specified CRTC, given a user request with format. yes bestie, an FB β a framebuffer β and she's getting added to the CRTC you asked for, based on the format you requested πΌοΈβ¨
and here's the tea: this is the 2nd version of the addfb ioctl. v2! the glow-up! π she supports multi-planar framebuffers (plural planes, so fancy) and she uses fourcc codes</> as pixel format specifiers. fourcc! iconic format-specifier behavior, no cap π
Called by the user via ioctl. fr fr, that's the entry point β userland knocks, ioctl answers πͺβ¨
β RETURN β
Zero on success, negative errno on failure. so: 0 = slay, negative errno = not slay π that's the whole vibe check
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_framebuffer.coverview(9) β the source of truth, go read her π drm_mode_addfb(9)β the original, the prequel π¬drm_mode_rmfb(9)β the removal era, we love a clean exitdrm_mode_getfb(9)β retrieving info, nosy but make it legitdrm_mode_getfb2_ioctl(9)β the v2 info-getter, matching energy β¨drm_mode_dirtyfb_ioctl(9)β dirty in the good way, pixels only π«§drm_fb_release(9)β letting go, healing era π±drm_framebuffer_init(9)β set her up rightdrm_framebuffer_lookup(9)β find your fave πdrm_framebuffer_unregister_private(9)β the private era endsdrm_framebuffer_cleanup(9)β cleaning up, we stan a tidy queen π§Ήdrm_framebuffer_remove(9)β gone, but remembered π
real talk bestie: ioctl paths are kernel territory, so if something returns a negative errno, that's your signal to actually read it β no guessing, no vibes-only debugging π
okay that's the page!! sourced straight from the kernel tree at ./drivers/gpu/drm π and dated October 2026 β so this manual page is literally from the future, she's ahead of her time, main character energy periodt πβ¨ππ¦
π¦ 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