lkml.org 
[lkml]   [2002]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] printk from userspace


    On Wed, 14 Aug 2002, Benjamin LaHaise wrote:

    > On Tue, Aug 13, 2002 at 09:11:55PM -0700, Andrew Morton wrote:
    > > It requires root.
    >
    > Still, unlike kernel code that can be rate limited, this call cannot.
    > Besides, isn't adding yet another syscall that's equivalent to write(2)
    > a reason to take this patch and burn it along with the vomit its caused?

    I have a better suggestion. How about we make write(2) on /dev/console to
    act as printk()? IOW, how about making _all_ writes to console show up in
    dmesg?

    Then we don't need anything special to do logging _and_ we get output
    of init scripts captured. For free. dmesg(8) would pick that up, klogd(8)
    will work as is, etc.

    Linus?

    -
    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: 2005-03-22 13:28    [W:0.036 / U:61.336 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site