From: "Jean-Sébastien Pédron" <jean-sebastien.pedron@dumbbell.fr>
To: David Herrmann <dh.herrmann@gmail.com>
Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: Re: Questions about TTM buffer object maping
Date: Fri, 12 Jul 2013 00:04:57 +0200 [thread overview]
Message-ID: <51DF2C09.2010608@dumbbell.fr> (raw)
In-Reply-To: <CANq1E4Qr3aY4+jrZ-weKuFsuK-Z39uD7AxMeJ4C1CkrrkhF7dg@mail.gmail.com>
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
prev parent reply other threads:[~2013-07-11 22:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 0:27 Questions about TTM buffer object maping Jean-Sébastien Pédron
2013-07-11 1:00 ` Jerome Glisse
2013-07-11 6:24 ` Daniel Vetter
2013-07-11 14:06 ` Jerome Glisse
2013-07-11 21:43 ` Jean-Sébastien Pédron
2013-07-11 21:51 ` Jerome Glisse
2013-07-11 21:51 ` David Herrmann
2013-07-11 22:04 ` Jean-Sébastien Pédron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51DF2C09.2010608@dumbbell.fr \
--to=jean-sebastien.pedron@dumbbell.fr \
--cc=dh.herrmann@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.