on linux everything is a file, which means you do everything through normal file operations like read, write, and ioctl(fd, DRM_IOCTL_MODE_ADDFB2, &drm_fb2);