Jump to content
  • Advertisement
Sign in to follow this  
Robinhood

Need EXPORT_SYMBOL Tutorial

This topic is 4340 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I failed to experiment EXPORT_SYMBOL. Can someone give me a simple example and makefile? Any links will also be fine.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster

Share this post


Link to post
Share on other sites
Quote:
Original post by Robinhood
I failed to experiment EXPORT_SYMBOL.
Can someone give me a simple example and makefile?
Any links will also be fine.


I'm not familiar with any EXPORT_SYMBOL. Do you possibly mean using a linkmap to mark specific symbols as global so that non-global symbols can be stripped from an ELF binary (like the way COFF symbols can be restricted using DLL_EXPORT)?

Share this post


Link to post
Share on other sites
I am practicing some code about Keyboard Driver(not PS2),
and I want to use interrupt to handle key event.But the event handling
routine is in another project,so I need to link event handling routine with the keyboard driver.

Share this post


Link to post
Share on other sites
Quote:
Original post by Robinhood
I am practicing some code about Keyboard Driver(not PS2),


Ah, that EXPORT_SYMBOL. I just assumed you were doing game development, not Linux kernel programing.

If you're trying to grab an existing kernel symbol from within your driver module, you can just use symbol_get(). If you're trying to make a symbol from your module available to the kernel (or other modules), use the EXPORT_SYMBOL macro.

I would suggest, however, that you ask such questions in a Linux kernel programming forum, since they're more likely to be up on Linux kernel internals than yer typical game developer (which is more userland-oriented).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!