All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Oberritter <obi@linuxtv.org>
To: Devin Heitmueller <devin.heitmueller@gmail.com>
Cc: linux-dvb <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] Power management and dvb framework
Date: Sun, 14 Sep 2008 18:03:28 +0200	[thread overview]
Message-ID: <48CD35D0.5010907@linuxtv.org> (raw)
In-Reply-To: <412bdbff0809140550w7c6bdeaag567039de5af590db@mail.gmail.com>

Devin Heitmueller wrote:
> On Sat, Sep 13, 2008 at 11:21 PM, Andreas Oberritter <obi@linuxtv.org> wrote:
>> The sleep callback gets called automatically some seconds after the last
>> user closed the frontend device.
> 
> Great.  That sounds like the ideal place to bring everything down.  Is
> that scheduled via a timer?

No. I just saw that the timeout defaults to 0 seconds now. For each
frontend a kernel thread gets started when open() is called. After the
call to close(), the thread will be stopped after 'dvb_shutdown_timeout'
seconds. It compares the jiffies value to accomplish that. See
dvb_frontend_is_exiting() in dvb_frontend.c.

> And does it still get called if the
> frontend gets reopened before the timer expires?

No, and the old kernel thread will be reused.

Regards,
Andreas

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

      reply	other threads:[~2008-09-14 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-13 21:41 [linux-dvb] Power management and dvb framework Devin Heitmueller
2008-09-13 21:53 ` Steven Toth
2008-09-13 22:28   ` Devin Heitmueller
2008-09-14  3:21     ` Andreas Oberritter
2008-09-14 12:50       ` Devin Heitmueller
2008-09-14 16:03         ` Andreas Oberritter [this message]

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=48CD35D0.5010907@linuxtv.org \
    --to=obi@linuxtv.org \
    --cc=devin.heitmueller@gmail.com \
    --cc=linux-dvb@linuxtv.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.