lkml.org 
[lkml]   [2004]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Resolving missing external symbols at module load time.
On Fri, 22 Oct 2004 16:47:44 -0400, Jon Smirl <jonsmirl@gmail.com> wrote:
> I'm looking at how to get rid of the inter_module_get calls in DRM to
> AGP. What is the proper procedure to reference an external symbol that
> may be any of the following:
>
> 1) compiled in
> 2) module that is loaded
> 3) non-existent since the system doesn't have the hardware
>
> With inter_module_get() #1 and #2 would succeed and return a pointer
> to the module. #3 would fail. The DRM code then handled each of these
> cases. I've been looking at the new module calls and and I can't see
> how to make this work.
>
> The symbol resolution also needs to work if DRM is compiled in and the
> system has no AGP support.

I've found some old posts in the lkml archives and now I see this is
what symbol_get()/symbol_put() are for.

--
Jon Smirl
jonsmirl@gmail.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.055 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site