From: Nigel Cunningham <ncunningham@users.sourceforge.net>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Daniel Jacobowitz <dan@debian.org>,
viro@parcelfarce.linux.theplanet.co.uk,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: PATCH: Export console functions for use by Software Suspend nice display
Date: Fri, 23 Jan 2004 16:18:07 +1300 [thread overview]
Message-ID: <1074827886.12771.203.camel@laptop-linux> (raw)
In-Reply-To: <1074827229.12773.198.camel@laptop-linux>
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-01-23 3:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-22 8:12 PATCH: Export console functions for use by Software Suspend nice display Nigel Cunningham
2004-01-22 8:24 ` viro
2004-01-22 18:38 ` Nigel Cunningham
2004-01-22 20:35 ` Daniel Jacobowitz
2004-01-23 2:49 ` Benjamin Herrenschmidt
2004-01-23 3:07 ` Nigel Cunningham
2004-01-23 3:12 ` Benjamin Herrenschmidt
2004-01-23 3:27 ` Nigel Cunningham
2004-01-23 3:18 ` Nigel Cunningham [this message]
2004-01-22 8:28 ` Christoph Hellwig
2004-01-22 9:02 ` Nigel Cunningham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1074827886.12771.203.camel@laptop-linux \
--to=ncunningham@users.sourceforge.net \
--cc=benh@kernel.crashing.org \
--cc=dan@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox