Sunday, November 23, 2008

how to use linux symbol ?

exporting the symbols which are defined in Kernel, so that other program would use it freely.
for instance. TEST_SYMBOL is the one.
first : using macro EXPORT_SYMBOL(TEST_SYMBOL) in xxxx_ksyms.c file, which is architecture-dependant. locate it by using : slocate ksyms
second: reference it in your source file extern TEST_SYMBOL

emacs copy method: c- , M-W , C-Y

No comments: