diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2024-01-15 20:13:47 +0300 |
---|---|---|
committer | Maxime Ripard <mripard@kernel.org> | 2024-01-17 12:38:39 +0300 |
commit | 42d6196f6a948aaecfedf72326925dcbd054f9db (patch) | |
tree | 9d5a9311532c760e3ee1c73e7c08fdee38bfaee6 /include | |
parent | aabf5c412f0435b676b668283d1aba1da10a32b9 (diff) | |
download | linux-42d6196f6a948aaecfedf72326925dcbd054f9db.tar.xz |
drm/managed: Add drmm_release_action
Similar to devres equivalent, it allows to call the "release" action
directly and remove the resource from the managed resources list.
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240115171351.504264-2-michal.winiarski@intel.com
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drm_managed.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_managed.h b/include/drm/drm_managed.h index ad08f834af40..f547b09ca023 100644 --- a/include/drm/drm_managed.h +++ b/include/drm/drm_managed.h @@ -45,6 +45,10 @@ int __must_check __drmm_add_action_or_reset(struct drm_device *dev, drmres_release_t action, void *data, const char *name); +void drmm_release_action(struct drm_device *dev, + drmres_release_t action, + void *data); + void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) __malloc; /** |