Questions about TTM buffer object maping

Jean-Sébastien Pédron jean-sebastien.pedron at dumbbell.fr
Thu Jul 11 15:04:57 PDT 2013


Le 11/07/2013 23:51, David Herrmann a écrit :
> ->vm_open() isn't called for the first mmap(), afaik (only called
> during fork()s or similar). So the reference in ttm_bo_mmap() is a
> replacement for the reference you take in the ->vm_open() callback.

So the reference is acquired either in ttm_bo_mmap() or in 
ttm_bo_vm_open(), and always released in ttm_bo_vm_close().

Thanks to both of you!

-- 
Jean-Sébastien Pédron


More information about the dri-devel mailing list