All of lore.kernel.org
 help / color / mirror / Atom feed
* nouveau_device_wrap
@ 2014-03-11 14:46 Daniel Melo Jorge da Cunha
       [not found] ` <CANbfre7fA3WtwujWTXuq27UoqfbAC9zQBQfMcc93uGnSc6mQ6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Melo Jorge da Cunha @ 2014-03-11 14:46 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org


[-- Attachment #1.1: Type: text/plain, Size: 247 bytes --]

Sorry for the lame question, but is nouveau_device_wrap (...) implemented
outside Mesa source code? (like libdrm, I don't know...)

Because I searched the whole Mesa-10.0.3 source and found no
implementation for this function.

Thanks in advance.

[-- Attachment #1.2: Type: text/html, Size: 339 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nouveau_device_wrap
       [not found] ` <CANbfre7fA3WtwujWTXuq27UoqfbAC9zQBQfMcc93uGnSc6mQ6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-03-11 15:00   ` Ilia Mirkin
  2014-03-11 15:01   ` nouveau_device_wrap Emil Velikov
  1 sibling, 0 replies; 3+ messages in thread
From: Ilia Mirkin @ 2014-03-11 15:00 UTC (permalink / raw)
  To: Daniel Melo Jorge da Cunha
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

On Tue, Mar 11, 2014 at 10:46 AM, Daniel Melo Jorge da Cunha
<dmjcunha-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Sorry for the lame question, but is nouveau_device_wrap (...) implemented
> outside Mesa source code? (like libdrm, I don't know...)
>
> Because I searched the whole Mesa-10.0.3 source and found no
> implementation for this function.

Well, assuming that mesa compiles, it would stand to reason that the
implementation is elsewhere.

drm $ git grep nouveau_device_wrap
nouveau/nouveau.c:/* this is the old libdrm's version of
nouveau_device_wrap(), the symbol
nouveau/nouveau.c:nouveau_device_wrap(int fd, int close, struct
nouveau_device **pdev)
nouveau/nouveau.c:              ret = nouveau_device_wrap(fd, 1, pdev);
nouveau/nouveau.h:int  nouveau_device_wrap(int fd, int close, struct
nouveau_device **);

And so it is... http://cgit.freedesktop.org/mesa/drm/tree/nouveau/nouveau.c#n73

Cheers,

  -ilia

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nouveau_device_wrap
       [not found] ` <CANbfre7fA3WtwujWTXuq27UoqfbAC9zQBQfMcc93uGnSc6mQ6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2014-03-11 15:00   ` nouveau_device_wrap Ilia Mirkin
@ 2014-03-11 15:01   ` Emil Velikov
  1 sibling, 0 replies; 3+ messages in thread
From: Emil Velikov @ 2014-03-11 15:01 UTC (permalink / raw)
  To: Daniel Melo Jorge da Cunha,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
  Cc: emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w

On 11/03/14 14:46, Daniel Melo Jorge da Cunha wrote:
> Sorry for the lame question, but is nouveau_device_wrap (...) implemented
> outside Mesa source code? (like libdrm, I don't know...)
>
Indeed it is inside libdrm-nouveau [1].

> Because I searched the whole Mesa-10.0.3 source and found no
> implementation for this function.
>
A general rule of thumb for driver specific functions is - if it's not 
in mesa you can find it in libdrm*.

[1] http://cgit.freedesktop.org/mesa/drm/tree/nouveau/nouveau.c#n73

Happy hacking :-)
-Emil
> Thanks in advance.
>
>
>
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-11 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 14:46 nouveau_device_wrap Daniel Melo Jorge da Cunha
     [not found] ` <CANbfre7fA3WtwujWTXuq27UoqfbAC9zQBQfMcc93uGnSc6mQ6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-11 15:00   ` nouveau_device_wrap Ilia Mirkin
2014-03-11 15:01   ` nouveau_device_wrap Emil Velikov

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.