it s copy pasted from drm gem mmap with one minor modification that i will note in gerrit  the reason i copied it is because at this point in time  drm offered no api for retrieving gem objects by their   dumb   offsets  in my upstream branch  this function just uses drm vma offset exact lookup to retrieve the gem object from   dumb   offset 