printf internals



Hi,

I am looking at how exactly does the printf in user programs succeeds in
displaying characters to the serial console.

printf uses /dev/console to write the data. Once written to
/dev/console, what happens to the string written?

Is there any way, I can get access to those prints/string inside the
kernel?

Thanks
Siva

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: printf internals
    ... >> I am looking at how exactly does the printf in user programs succeeds in ... >> displaying characters to the serial console. ... Work your way from there and then use a Linux Source code ...
    (Linux-Kernel)
  • Re: x86 Stack Confusion
    ... >printfcan't fail. ... >Suppose stdout is not connected to a serial console? ... >Suppose it is connected to a serial console that has had flow ... printf might never return errors. ...
    (comp.lang.c)
  • Re: x86 Stack Confusion
    ... >on systems where printf can't fail. ... Suppose stdout is not connected to a serial console? ... Suppose it is connected to a serial console that has had flow ...
    (comp.lang.c)
  • Redirection of stdout
    ... I have implemented my own telnet server. ... After telneting, when I execute any task (which has a printf in it), ... the output goes to the serial console and not to the tty console. ...
    (comp.os.vxworks)