linux/drivers/gpu/drm/bochs
David Herrmann 6796cb16c0 drm: use anon-inode instead of relying on cdevs
DRM drivers share a common address_space across all character-devices of a
single DRM device. This allows simple buffer eviction and mapping-control.
However, DRM core currently waits for the first ->open() on any char-dev
to mark the underlying inode as backing inode of the device. This delayed
initialization causes ugly conditions all over the place:
  if (dev->dev_mapping)
    do_sth();

To avoid delayed initialization and to stop reusing the inode of the
char-dev, we allocate an anonymous inode for each DRM device and reset
filp->f_mapping to it on ->open().

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-03-16 12:23:33 +01:00
..
Kconfig drm/bochs: new driver 2013-12-23 11:02:39 +10:00
Makefile drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs.h drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs_drv.c drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs_fbdev.c drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs_hw.c drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs_kms.c drm/bochs: new driver 2013-12-23 11:02:39 +10:00
bochs_mm.c drm: use anon-inode instead of relying on cdevs 2014-03-16 12:23:33 +01:00