Skip to contentSkip to conversation

Resolving missing external symbols at module load time.

DISCUSSION Jon Smirl 1 participant 2 messages Oct 22, 2004 – Oct 23, 2004

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

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.

Signature · 2 lines
Jon Smirl
[email protected]
author
#1 lore raw
Quoted 8 lines · Jon Smirl

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

Quoted 7 lines

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.

Signature · 2 lines
Jon Smirl
[email protected]