Re: questions abort kernel extension.
On Wed, 10 Dec 2003 14:49:05 +0000 Quinn <eskimo1@apple.com> wrote: Check out the IOKitWithLibrary sample. <http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/IOKit/IOKitWithLibrary.htm> This example shows how to export a C interface from one kernel extension (the library) to be picked up by another (in this case an I/O Kit driver, but the technique should work for other types of kernel extension). Yes, This example can work. But when I change the languge from C to c, it not work any more. In example LibraryPort export a fuction 'com_apple_dts_library_IOKitWithLibrary_LibraryFunction', I'm change HelloKernel ---- extern void com_apple_dts_library_IOKitWithLibrary_LibraryFunction(void); kern_return_t HelloKernel_start (kmod_info_t * ki, void * d) { printf("Kext has loaded!\n"); com_apple_dts_library_IOKitWithLibrary_LibraryFunction(); return KERN_SUCCESS; } --- now compile passed, First I load Library.ext first, In my point, Load HelloKernel will work, In fact, it still report unresoved message. Where am i wrong? -- Hu Gang / Steve Email : hugang@soulinfo.com, steve@soulinfo.com GPG FinePrint : 4099 3F1D AE01 1817 68F7 D499 A6C2 C418 86C8 610E GPG Public Key: http://soulinfo.com/~hugang/HuGang.asc MSN# : huganglinux@hotmail.com [9:00AM - 5:30PM +8:00] RLU# : 204016 [1999] (Register Linux User) _________________________________________________________________ SkA*;z5DEsSQ=xPP=;Aw#,GkJ9SC MSN Messenger: http://messenger.msn.com/cn _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
linuxbest linuxbest