Unix Programming - split kernel module

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2005 > split kernel module





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author split kernel module
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com