All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias DiPasquale <codeslinger@gmail.com>
To: netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: proper method of deleting recurring timer?
Date: Tue, 21 Sep 2004 16:20:00 -0400	[thread overview]
Message-ID: <876ef97a0409211320696001b0@mail.gmail.com> (raw)

Hi all,

I've seen a number of different recommendations for the proper method
of deleting a recurring timer. I am wondering what the actual proper
way is and I figured that this list is the place to find that out. I
have a timer that recurs while a module is loaded every x seconds
until the module is unloaded. What is the proper way to remove said
timer upon module unload?

Currently, I'm doing this:

[...]
del_timer_sync( &timer);
if (timer_pending( &timer))
        del_timer( &timer);
[...]

The timer is installed and started off during the module init()
function. Thanks in advance!

-- 
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d

                 reply	other threads:[~2004-09-21 20:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=876ef97a0409211320696001b0@mail.gmail.com \
    --to=codeslinger@gmail.com \
    --cc=netfilter-devel@lists.netfilter.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.