[PATCH 3/5] drm/vram: add vram-mm debugfs file

Gerd Hoffmann kraxel at redhat.com
Tue Sep 3 06:20:52 UTC 2019


  Hi,

> > +++ b/include/drm/drm_gem_vram_helper.h
> > @@ -123,6 +123,7 @@ int drm_gem_vram_driver_dumb_mmap_offset(struct drm_file *file,
> >   * &struct drm_driver with default functions.
> >   */
> >  #define DRM_GEM_VRAM_DRIVER \
> > +	.debugfs_init             = drm_vram_mm_debugfs_init, \
> 
> > +int drm_vram_mm_debugfs_init(struct drm_minor *minor);
> 
> I cannot find a caller of this function. Will this be called form
> drm_debugfs_init()?

Yes, via drm_driver->debugfs_init which is set above.

cheers,
  Gerd



More information about the dri-devel mailing list