XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
drm_gem_lru Struct Reference

#include <drm_gem.h>

Collaboration diagram for drm_gem_lru:
Collaboration graph
[legend]

Public Attributes

long count
 
struct list_head list
 

Detailed Description

struct drm_gem_lru - A simple LRU helper

A helper for tracking GEM objects in a given state, to aid in driver's shrinker implementation. Tracks the count of pages for lockless &shrinker.count_objects, and provides &drm_gem_lru_scan for driver's &shrinker.scan_objects implementation.

Any access to this kind of object must be done with drm_device::gem_lru_mutex held.

Member Data Documentation

◆ count

long drm_gem_lru::count

@count:

The total number of backing pages of the GEM objects in this LRU.

◆ list

struct list_head drm_gem_lru::list

@list:

The LRU list.


The documentation for this struct was generated from the following file: