Re: New to kernel programming... Hope to see something from the console
Re: New to kernel programming... Hope to see something from the console
- Subject: Re: New to kernel programming... Hope to see something from the console
- From: "mm w" <email@hidden>
- Date: Fri, 10 Oct 2008 11:55:07 -0700
"buffered output versus unbuffered output"
in a middle of many things but not really lost
Cheers!
On Thu, Oct 9, 2008 at 8:43 AM, Herb Petschauer <email@hidden> wrote:
> 2008/10/9 Cloud Strife <email@hidden>:
>> Hi everyone.
>> I am new to Mach kernel programming. Currently I am writing a dummy driver
>> from the following guidance:
>> http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptIOKit/hello_iokit.html#//apple_ref/doc/uid/20002366-97636
>>
>> After wrote the code and compiled them, I set the owner and the privilege of
>> the kext, and loaded it by
>> "kextload -t myIOKitDriver.kext".
>> The terminal prompted I had successfully loaded the kext. I am expecting to
>> see some information come out from the console. However, the expected
>> message:
>> " IOLog("Initializing\n");" does not appear.
>> Can anyone tell me why the IOLog don't show up? And is there any way to
>> correct this?
>> Thank you very much for any help.
>> Have a good day. :-)
>> --
>> Best regards.
>
> Use kextstat to see if your kext was loaded
>
> kextstat | grep com.whatever.bundleinfo.youused
>
> Sometimes IOLog() gets lost in the works...
>
> I usually have a second window open with a "tail -f /var/log" command
> running to capture an logging (that or the Console.app) or system
> messages. I've switched to FireWire and kprintf (much nicer but it
> requires two machines, search the archives).
>
> Does kextunload complain that there is nothing to unload?
>
> Good luck!
> -H.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
-mmw
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden