Re: New to kernel programming... Hope to see something from the console
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=29gix9pwNnNmzuTx7WHuNwBzl+KGnVwSwuA5nF482ps=; b=cGdQXctrsdXKf4tUtsYsqQBF1p0yzYKbIKxVxtn7Elii3OeSMZPSakvJI5Mesjtswo BzXg+QNYN+RFUtoDU1gZGHEjENZwgLH50/PsYGKjh/Kez7pzgYyAk4a/ase5DKxU8Ldm v8Tw02JCn1IAaq+Hfd7m+e4QL0SY07eJmIlvU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=oIY4LiGxsGsjJ1nI4Ec8bp7+yrU087guCM7zAz4pGpiW+6EK8gcWiYnNY8Uay39QzR LqUNVeYm1I8RVdLGBiXoxQtvMR1qLXkbZLS/Cn10rp9RPDmWO3O8Fu3gpojgWX9KPxzK mbvBkK3YWhxaYzuC6iu4c6Z635PaF14l4Gtks= 2008/10/9 Cloud Strife <geforce8800@gmail.com>:
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/KEXTC...
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Herb Petschauer