[Nouveau] nouveau_object_new beginner question

Daniel Melo Jorge da Cunha dmjcunha at gmail.com
Thu May 22 07:37:50 PDT 2014


I'm sorry for this beginner question but I can't understand.
File ../nouveau/nouveau.c, function nouveau_object_new.
Assuming data has content. First, obj->data = obj + 1. This is perfect
after the memcpy call.
But when: *(struct nouveau_object **)obj->data = obj;
I can't understand because now obj and obj->data has the same address,
while previously obj->data pointed exactly to the contents of data.
What am I missing?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20140522/c4366fa0/attachment.html>


More information about the Nouveau mailing list