Hi all,

I can access a Global structure by mdb-> Global_struct=X, it prints
the address of that structure. Now I want to access it from user
space, so I wrote a driver and put it in the read op.
 cmn_err(CE_NOTE, "Global structure = 0x%x\n", (unsigned int)&Global_struct);

The driver build successful but report error( undefined symbol) when
issue "add_drv mydriver".
It's wired for me. Can't the driver access the global variable of the kernel?

Thanks to help me out.
-Aubrey
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to