TRM devices
TRM devices (/dev/videoXX) represent a GPU (vga, …) and have a set of ioctl to control them. For more info see trm.
ioctl
TRM_GET_RESSOURCESPass atrm_card_t *and fill it.TRM_GET_MODEPass atrm_mode_t *and fill it.TRM_GET_FRAMEBUFFERPass atrm_fb_t *and fill it (require to own the framebuffer or be the master).TRM_GET_PLANEPass atrm_plane_t *and fill it.TRM_GET_CRTCPass atrm_crtc_t *and fill it.TRM_GET_CONNECTORPass atrm_connector_t *and fill it.TRM_KMS_TESTPass atrm_mode_t *and check it’s validity.TRM_KMS_FIXPass atrm_mode_t *and try to fix it.TRM_KMS_COMMITCommit modesetting using atrm_mode_t *TRM_ALLOC_FRAMEBUFFERPass atrm_fb_t *(with no id) and try to allocate it.