Re: KERN_ALERT doesn´t work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 30, 2004 at 22:01:21 +0530, Dhiman, Gaurav wrote:
> 
> How the printk() works ....
> 
> printk() write the things to kernels internal data structure (which is
> implemented as circular queue). Now the question is how the message
> comes out from kernel data structure to user space. There is a daemon
> kernel thread (klogd) which keeps on fetching the information from
> this kernel circular queue and forward the messagfes to another
> process (syslogd). Now syslogd categorize the messages baed upon there
> priority and its configuration settings, if the priority level of
> message is greater than the default level of system then syslogd to
> console terminal (not to xterminal) else it sends the message to
> /var/log/messages.

There IS one more way for the message to get out. If the message is on
level higher that "console log level", it is written to current CONSOLE
in addition to being passed to the klogd. But x terminals are not
consoles (tty) -- they are pseudoterminals (pty).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux