Share on other sites

Guest Anonymous Poster

Share this post

Link to post

Share on other sites

Original post by RobinhoodI 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)?

0

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 handlingroutine 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

Original post by RobinhoodI 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).