Re: printk and \n

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

 



javad karabi wrote:
I am very curious about this.
Where exactly does the "hello" text go, before it is 'flushed' ?
I am thinking that it gets put in some other buffer, then 'flushing' the buffer does something
to the effect of memcpy the buffer to the framebuffer?

stdout is buffered, the '\n' newline character means that fflush is called on stdout and so the buffer is flushed. You can turn the buffer off using "setbuf(stdout, NULL);" and the output will immediately be displayed.

Phil

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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