Name
drm_mode_duplicate —
allocate and duplicate an existing mode
Arguments
dev
drm_device to allocate the duplicated mode for
mode
mode to duplicate
Description
Just allocate a new mode, copy the existing mode into it, and return
a pointer to it. Used to create new instances of established modes.
Returns
Pointer to duplicated mode on success, NULL on error.