接前一篇文章:DRM全解析 —— ADD_FB(4)
本文参考以下博文:
特此致谢!
上一回讲解了drm_mode_addfb函数中的第二步暨第二个函数drm_driver_legacy_fb_format。本回继续对于drm_mode_addfb函数往下进行解析。为了便于理解,再次贴出其代码,在drivers/gpu/drm/drm_framebuffer.c中,如下:
/**
* drm_mode_addfb - add an FB to the graphics configuration
* @dev: drm device for the ioctl
* @or: pointer to request structure
* @file_priv: drm file
*
* Add a new FB to the specified CRTC, given a user request. This is the
* original addfb ioctl which only supported RGB formats.
*
* Called by