lkml.org 
[lkml]   [2006]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: OpenGL-based framebuffer concepts
    "Antonino A. Daplas" <adaplas@gmail.com> wrote:
    >
    > Console writes are done with the console semaphore held. printk will also
    > just write to the log buffer and defer the actual console printing
    > for later, by the next or current process that will grab the semaphore.

    Always by the current process which holds console_sem. Leaving the printing
    for the next process would be unacceptably too late for printk.

    If printk sees that someone holds console_sem, printk will leave the data
    in the log buffer for the current holder of console_sem to print, prior to
    that caller releasing console_sem. logbuf_log is used in tricky ways
    around console_sem to prevent races in this logic.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-06-02 01:00    [W:4.237 / U:0.692 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site