|
Driver porting: hello worldDriver porting: hello worldPosted Jul 15, 2004 11:37 UTC (Thu) by littertiger (guest, #22470)Parent article: Driver porting: hello world
I don't know what the "KERN_INFO" means in the example.
(Log in to post comments)
Driver porting: hello world Posted Jul 28, 2004 9:28 UTC (Wed) by PsychoJamin (guest, #23518) [Link] KERN_INFO is part of a macro defined in <linux/kernel.h>It replaces the need for <0> .. <7> in printk messages which specifies the priority of the message. Where 0 is the highest priority and 7 is the lowest. As these are macros there is no need for a ',' between it ans the rest of the printk parameter. ie printk(KERN_INFO "Hello\n"); not printk(KERN_INFO, "Hello\n"); The definietions are as follows: #define KERN_EMERG "<0>" /* system is unusable */
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.