From: "Bartłomiej Zimoń" <uzi18@o2.pl>
To: linux-kernel@vger.kernel.org
Cc: "Andy Walls" <awalls@radix.net>,
"pm list" <linux-pm@lists.linux-foundation.org>
Subject: Re: [suspend/resume] Re: userspace notification from module
Date: Sun, 03 Jan 2010 12:01:20 +0100 [thread overview]
Message-ID: <43bd3f9d.71702a8b.4b407900.b542@o2.pl> (raw)
In-Reply-To: <4B406C14.2070907@gmail.com>
Dnia 3 stycznia 2010 11:06 Daniel Borkmann <danborkmann@googlemail.com> napisał(a):
> Daniel Borkmann wrote:
> > Bartłomiej Zimoń wrote:
> >> What about this discusion:
> >> http://lists.freedesktop.org/archives/devkit-devel/2009-December/000617.html
> >>
> >> I will perform some tests to know what amount of time is usualy needed to disconnect
> >> nicely client or something.
> >
> > Actually I think this is what signals are there for and bringing this
> > information via signals would have least overhead, problem is that this
> > is not POSIX compliant, but may be you could have a try at this?!
>
> I'm not quite sure how this is implemented within the kernel, but if you
> have lots of processes doing their suspend routines, I think it is not
> guaranteed that all of this finishes before doing the suspend, so you
> will have some unknown states, processes could stuck at (and later [at
> some unintended point of time] resume on).
> Or, on the other hand you will have to block the kernel notification
> chain until all the procs have signaled that they're done doing their
> jobs. Regarding this, the kernel suspend would depend on the correctness
> / termination of userspace routines which is a _very_ bad thing.
> You will have to introducte some timeouts... see where this is going? I
> think a file interface might be too simple... just some thoughts about this.
>
mhm, why not to create kernel based pm event messaging for processes?
How it is implemented on other platforms?
Because on MacOsX looks like program registers callback for such event.
I dont know if every pm_notifier blocks suspend until return from callback.
If we cant do it simple we can do it better.
Rafael what do You think about it?
Best regards.
Bartłomiej Zimoń
PLD Linux, Kadu Team, FreeRunner user
http://kadu-im.blogspot.com/
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm
next prev parent reply other threads:[~2010-01-03 11:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl>
[not found] ` <201001022201.04281.rjw@sisk.pl>
[not found] ` <7cf4f51f.5fc2a5cd.4b3fc3ad.c849c@o2.pl>
2010-01-02 23:29 ` [suspend/resume] Re: userspace notification from module Rafael J. Wysocki
2010-01-03 1:03 ` Bartłomiej Zimoń
2010-01-03 9:30 ` Daniel Borkmann
[not found] ` <4B4063AB.7080401@gmail.com>
2010-01-03 10:06 ` Daniel Borkmann
[not found] ` <4B406C14.2070907@gmail.com>
2010-01-03 11:01 ` Bartłomiej Zimoń [this message]
2010-01-03 21:49 ` Rafael J. Wysocki
[not found] ` <201001032249.11510.rjw@sisk.pl>
2010-01-04 13:38 ` Stefan Seyfried
2010-01-03 21:33 ` Rafael J. Wysocki
2010-01-03 21:29 ` Rafael J. Wysocki
[not found] ` <201001032229.53221.rjw@sisk.pl>
2010-01-03 22:53 ` Bartłomiej Zimoń
2010-01-03 23:30 ` Rafael J. Wysocki
[not found] ` <201001040030.01256.rjw@sisk.pl>
2010-01-03 23:35 ` Bartłomiej Zimoń
[not found] ` <54ac764e.502c1a33.4b4129c3.9dc1b@o2.pl>
2010-01-03 23:45 ` Rafael J. Wysocki
[not found] ` <201001040045.39517.rjw@sisk.pl>
2010-01-04 0:51 ` Bartłomiej Zimoń
2010-01-04 12:46 ` Daniel Borkmann
[not found] ` <a522f3c.3bab16d1.4b413b9c.ec43@o2.pl>
2010-01-04 19:43 ` Rafael J. Wysocki
[not found] ` <201001042043.27037.rjw@sisk.pl>
2010-01-05 9:07 ` Anders Eriksson
[not found] ` <20100105090706.751D233C4B0@tippex.mynet.homeunix.org>
2010-01-05 21:02 ` Bartłomiej Zimoń
2010-01-05 21:23 ` Rafael J. Wysocki
[not found] ` <201001052223.21964.rjw@sisk.pl>
2010-01-05 22:12 ` Bartłomiej Zimoń
[not found] ` <16a1b165.2fdc37c6.4b43b943.c6733@o2.pl>
2010-01-05 23:03 ` Rafael J. Wysocki
[not found] ` <201001060003.23419.rjw@sisk.pl>
2010-01-05 23:37 ` Bartłomiej Zimoń
2010-01-06 14:35 ` Anders Eriksson
[not found] ` <20100106143534.A7EEA33C5F5@tippex.mynet.homeunix.org>
2010-01-06 20:37 ` [suspend/resume] Re: userspace notific ation " Bartłomiej Zimoń
[not found] ` <5c33d92a.63a2de8c.4b44f47a.8762@o2.pl>
2010-01-06 20:49 ` Roland Dreier
[not found] ` <adatyuzt0vg.fsf@roland-alpha.cisco.com>
2010-01-06 20:56 ` Roland Dreier
2010-01-15 20:02 ` [suspend/resume] Re: userspace notification " Pavel Machek
2010-01-05 21:26 ` Stefan Seyfried
[not found] ` <20100105222657.27218c4c@strolchi.home.s3e.de>
2010-01-05 22:22 ` Bartłomiej Zimoń
2010-01-05 23:05 ` Rafael J. Wysocki
[not found] ` <201001060005.17246.rjw@sisk.pl>
2010-01-06 0:43 ` Bartłomiej Zimoń
2010-01-06 10:10 ` Stefan Seyfried
[not found] ` <4B41E318.4050809@gmail.com>
2010-01-04 19:45 ` Rafael J. Wysocki
2010-01-03 17:20 ` Bartłomiej Zimoń
[not found] ` <ff72e3e.3b5092ec.4b40d1ec.54407@o2.pl>
2010-01-03 21:50 ` Rafael J. Wysocki
2010-01-03 23:17 Bartłomiej Zimoń
-- strict thread matches above, loose matches on Subject: below --
2010-01-06 1:05 Bartłomiej Zimoń
[not found] <1df13dac.5ba05e5c.4b43e1e2.120e@o2.pl>
2010-01-06 22:48 ` Rafael J. Wysocki
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=43bd3f9d.71702a8b.4b407900.b542@o2.pl \
--to=uzi18@o2.pl \
--cc=awalls@radix.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
/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