Paul Durrant wrote:
On 07/05/07, Thomas De Schampheleire <[EMAIL PROTECTED]> wrote:
There some things I would like to make sure first: can I use all kernel
functions from a module? In Linux, modules can only use those
functions from
the kernel which are exported by the EXPORT_SYMBOL macro.
I suppose there is a similar mechanism for OpenSolaris, isn't there?
Not that I'm aware of. Pretty much all kernel symbols are available to
you.
Yes, but unless they are in unix itself, you have to depend on the
module. E.g. ld -y -Nmisc/mac is required to import symbols from the
"mac" module.
In
that case: how do I know which functions are exported and which aren't?
Check if there's a manpage for it. If there isn't then it's probably a
private function which you should consider unstable.
Yes. But if you want to see all (including undocumented) interfaces,
look in headers and use "nm".
Secondly, I am still stuck with the question about how my module will be
loaded. It should be loaded by default when booting, is there a way to
achieve that?
What type of module is it? A driver? If so, I think ddi-forceattach
should work for you.
modload from a shell script for misc modules?
-- Garrett
Paul
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code