| Uwe Mayer 2005-06-21, 5:53 pm |
| Hi,
I am getting into Linux kernel module programming and was studying "The
Linux Kernel Module programming Guide".
I want to split a module into two parts, one containing auxilary functions,
one the driver specific functions:
-- Makefile:
obj-m += foobar.o
foobar-objs := foo.o bar.o
Let foo.o contain the auxilary functions.
The functions in foo may not be static, otherwise they are not available in
bar. But I don't want them to be global and pollute the kernel symbol
table.
$ nm foobar.ko
....
000000c9 r __module_depends
000000a0 r __mod_vermagic5
U printk
00000000 T print_string
....
Here: print_string (from foo.o) should be linked against bar.o without being
global.
Any ideas how to do that or where to look?
Thanks,
Ciao
Uwe
|