You are not logged in.

#1 2017-11-15 06:03:16

m-seven
Member
Registered: 2017-11-15
Posts: 3

what does KERN_SOH mean?

Hi all ,there is  the code of the Linux kernel.h :

#define KERN_SOH    "\001"      /* ASCII Start Of Header */
#define KERN_SOH_ASCII  '\001'

#define KERN_EMERG  KERN_SOH "0"    /* system is unusable */
#define KERN_ALERT  KERN_SOH "1"    /* action must be taken immediately */
#define KERN_CRIT   KERN_SOH "2"    /* critical conditions */
#define KERN_ERR    KERN_SOH "3"    /* error conditions */
#define KERN_WARNING    KERN_SOH "4"    /* warning conditions */
#define KERN_NOTICE KERN_SOH "5"    /* normal but significant condition */
#define KERN_INFO   KERN_SOH "6"    /* informational */
#define KERN_DEBUG  KERN_SOH "7"    /* debug-level messages */

#define KERN_DEFAULT    KERN_SOH "d"    /* the default kernel loglevel */


why does it need to define KERN_SOH?

what does KERN_SOH mean?

why not just define KERN_EMERG ,KERN_ALERT as simple as 0,1,2~~~

Offline

#2 2017-11-15 07:20:07

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: what does KERN_SOH mean?

I am not sure this question belongs to our forums, you should take it upstream. In any case, I'll move it for the time being.

Moving to GNU/Linux discussion.

Offline

#3 2017-11-15 23:27:12

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: what does KERN_SOH mean?

Did you try git blame on include/linux/kern_levels.h line 5 which is

#define KERN_SOH	"\001"	/* ASCII Start Of Header */

https://git.kernel.org/pub/scm/linux/ke … 3236200112

Offline

Board footer

Powered by FluxBB