From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= Subject: Re: Questions about TTM buffer object maping Date: Fri, 12 Jul 2013 00:04:57 +0200 Message-ID: <51DF2C09.2010608@dumbbell.fr> References: <51DDFBD9.7000703@dumbbell.fr> <20130711062419.GM6143@phenom.ffwll.local> <51DF26EB.7010804@dumbbell.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail.made4.biz (ns25270.ovh.net [91.121.29.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A80F1E5C25 for ; Thu, 11 Jul 2013 15:04:58 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Herrmann Cc: "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org Le 11/07/2013 23:51, David Herrmann a =E9crit : > ->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=E9bastien P=E9dron