drm_mode_getfb2_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_mode_getfb2_ioctl πŸ’–

okay bestie, we're in the Kernel API Manual for drm_mode_getfb2_ioctl(9), and this page is literally all about getting the extended FB info. slay. πŸ’…


🌸 NAME 🌸

drm_mode_getfb2_ioctl β€” get extended FB info. that's the whole vibe, no cap.

✨ SYNOPSIS ✨

int drm_mode_getfb2_ioctl (struct drm_device *dev , void *data , struct
       drm_file *file_priv );

🧚 ARGUMENTS 🧚

  • dev β€” the drm device for the ioctl. like, the device this call is happening on, periodt.
  • data β€” the data pointer for the ioctl. this is where the ioctl's data lives, bestie.
  • file_priv β€” the drm file for the ioctl call. the file tying this call to the caller, iykyk.

πŸ¦‹ DESCRIPTION πŸ¦‹

so the actual job: lookup the FB given its ID and return info about it. easy, iconic, no drama. ✨

and yeah, it's called by the user via ioctl. that's the whole entrance. 🫢

πŸŽ€ RETURN πŸŽ€

Zero on success, negative errno on failure. that's it: 0 = slay, negative errno = 😭.

🌈 SEE ALSO 🌈


mwah πŸ’‹ this cutie lives under ./drivers/gpu/drm, it's dated October 2026, and it's still drm_mode_getfb2_ioctl(9) β€” bye bestie 🫢

πŸ“¦ where this page comes from