[PATCH 10/13] PCI: revoke mappings like devmem
Jason Gunthorpe
jgg at ziepe.ca
Thu Oct 8 12:41:47 UTC 2020
On Thu, Oct 08, 2020 at 12:49:54AM -0700, Dan Williams wrote:
> > This is what got me thinking maybe this needs to be a bit bigger
> > generic infrastructure - eg enter this scheme from fops mmap and
> > everything else is in mm/user_iomem.c
>
> It still requires every file that can map physical memory to have its
> ->open fop do
Common infrastructure would have to create a dummy struct file at mmap
time with the global inode and attach that to the VMA.
Jason
More information about the dri-devel
mailing list