On 16/05/07, Thomas De Schampheleire <[EMAIL PROTECTED]> wrote:
Hi,

I am still a newbie as as well, so please correct me if I'm wrong, but
I believe that:

- you can access global variables of other modules, as long as they
are not declared static.
- you can access functions from other places in the kernel, also
provided they are not declared static. When you use functions from
other modules (and not from the actual kernel) you will need to make
the compiler aware of this dependency by using the -N argument to the
linker, for example -Nmisc/mac to depend on the misc/mac module.


You'll need the -N option in the linker for the first item too.
Remember that globals and non-static functions are both examples of
exported symbols.

 Paul

--
Paul Durrant
http://www.linkedin.com/in/pdurrant
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to