Re: PATCH: Export console functions for use by Software Suspend nice display

From: Nigel Cunningham (ncunningham_at_users.sourceforge.net)
Date: 01/23/04

  • Next message: Nigel Cunningham: "Re: PATCH: Export console functions for use by Software Suspend nice display"
    Date:	Fri, 23 Jan 2004 16:18:07 +1300
    To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    
    
    

    Sorry to reply to myself.

    I don't think I worded that last message right... I didn't mean that
    locking isn't an issue at all, just that we don't have to worry about
    another process writing to the console while we are.

    Nigel

    On Sat, 2004-01-24 at 05:07, Nigel Cunningham wrote:
    > Hi.
    >
    > On Fri, 2004-01-23 at 15:49, Benjamin Herrenschmidt wrote:
    > > Also, by using write instead of blasting the low level code,
    > > you will not have to worry about locking issues. (The way
    > > you tap the low level stuff should require at least the console
    > > semaphore held, write to /dev/console don't)
    > >
    > > Ben
    >
    > Locking is not an issue. This is suspend-to-disk. Everything else is
    > stopped while we're working.
    >
    > By the way, am I understanding the suggestion correctly? Do you
    > (collective) mean getting a fd for /dev/console from within kernel code
    > and using that? I've been looking at the way printk works and wondering
    > if con->write is equivalent (once I find the right console to write to)?
    >
    > Regards,
    >
    > Nigel

    -- 
    My work on Software Suspend is graciously brought to you by
    LinuxFund.org.
    
    

    -
    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/



  • Next message: Nigel Cunningham: "Re: PATCH: Export console functions for use by Software Suspend nice display"

    Relevant Pages

    • Re: VIA SATA I/O errors
      ... > and a lot of SCSI error messages will be output to the console. ... > few instances of this happening (which requires a hard power-off, ... I have no idea whether this is a software or hardware ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [linux-pm] [RFC] Add some hooks to generic suspend code
      ... > switch to other console before suspend, so X has to give up ... I'd rather not break an existing and relied upon userland interface now, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: uspend to Disk - Kernel 2.6.4 vs. r50p
      ... > Nigel's refrigerator is way more elaborate and very intrusive, ... > pmdisk) only tries a bit and eventually gives up if stopping system is ... Nigel & Michelle Cunningham ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] SMP support for drain local pages v2.
      ... CPU hotplugging uses drain_local_pages, and shouldn't drain the pcp lists for all cpus. ... Nigel & Michelle Cunningham ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Panics need better handling
      ... It saves the panic info into a firmware log. ... Subject: Panics need better handling ... > Using a framebuffer console helps a lot. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)