drm_mode_prune_invalid
Prev | Display Modes Function Reference | Next

## Name

drm_mode_prune_invalid — remove invalid modes from mode list

## Synopsis

`void drm_mode_prune_invalid (` | struct drm_device * dev,
| struct list_head * mode_list,
| bool verbose`)`;

## Arguments

`dev`

  DRM device

`mode_list`

  list of modes to check

`verbose`

  be verbose about it

## Description

This helper function can be used to prune a display mode list after validation has been completed. All modes who's status is not MODE_OK will be removed from the list, and if `verbose` the status code and mode name is also printed to dmesg.

Prev | Up | Next
drm_mode_validate_size | Home | drm_mode_sort