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.

Thomas

On 5/16/07, xiong xiaoyi <[EMAIL PROTECTED]> wrote:
Hi experts,

I am a newbie, I want to write a kernel module. I have couple simple
problems:

- Can my module access global variable in other modules ?
- Can my module call directly call those kernel functions in other modules?

Many thanks in advance.

- Xiaoyi
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code


_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to