* free resource
@ 2015-09-14 8:44 Alex Vazquez
2015-09-14 13:13 ` Rob Clark
0 siblings, 1 reply; 2+ messages in thread
From: Alex Vazquez @ 2015-09-14 8:44 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 152 bytes --]
Hi!
I want to know if when i use drmModeFreeResources() i need free the
resources crtc, encoder and connector before or it is not necessary.
Regards.
[-- Attachment #1.2: Type: text/html, Size: 220 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: free resource
2015-09-14 8:44 free resource Alex Vazquez
@ 2015-09-14 13:13 ` Rob Clark
0 siblings, 0 replies; 2+ messages in thread
From: Rob Clark @ 2015-09-14 13:13 UTC (permalink / raw)
To: Alex Vazquez; +Cc: dri-devel@lists.freedesktop.org
On Mon, Sep 14, 2015 at 4:44 AM, Alex Vazquez <avazquez.dev@gmail.com> wrote:
> Hi!
> I want to know if when i use drmModeFreeResources() i need free the
> resources crtc, encoder and connector before or it is not necessary.
drmModeFreeResources() only frees the drmModeResPtr object (including
it's arrays of connector-id's, etc).. you would independently need to
match calls to drmModeGet{Crtc,Connector,etc}() to
drmModeFree{Crtc,Connector,etc}()
BR,
-R
> Regards.
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-14 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 8:44 free resource Alex Vazquez
2015-09-14 13:13 ` Rob Clark
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.