Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:01:20+00:00 2026-06-17T05:01:20+00:00

To schedule an action to happen later in a linux kernel driver I have

  • 0

To schedule an action to happen later in a linux kernel driver I have 2 options:

  • add_timer
  • queue_delayed_work

One difference I know about: for timers you need to specify expires which is the jiffies value when the timer will expire, for delayed work you need to specify the delay of jiffies.

I’ve been reading other questions about timers and work_queue’s, and it mentions timers run outside process context. Is this different from delayed work?

Also I know there is an issue with timers, when calculating the expires, it might happen the value overflows, so the calculated value is smaller than the current jiffies and the timer expired immediately (correct me if I’m wrong here). Does delayed work suffer from the same issue? If it does, how do

To me it seems easier to use delayed work (because the work is not periodically). But what disadvantages over using timers?

EDIT
I did some further research. It seems queue_delayed_work just uses add_timer internally.

So my new question is, how do I take properly care of the jiffies overflow for timers? For example how can I set a timer/delayed_work to a 10min delay?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:01:22+00:00Added an answer on June 17, 2026 at 5:01 am

    As I stated in my question, queue_delayed_work just uses add_timer internally. So the use is equally.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically: I have a Schedule model where a person cans schedule one event per
I have a schedule grid based on a HTML table using jQuery/jQuery UI drag
I have a class (Schedule) defined as such (schedule.h file shown) #import <UIKit/UIKit.h> #import
I want to schedule events to happen for my users. Is there an efficient
I have created simple example with @Singleton, @Schedule and @Timeout annotations to try if
I have a repeated python schedule task as following,which need to run getMyStock() every
Okay, so I have a question about using columns in a case statement that
I need to create a schedule service in android with java. I have tried
I call this action using jquery public ActionResult Delete(int Id){ Schedule schedule = context.Schedules.FirstOrDefault(s
I want to start a gen_server that additionally, will perform one action every minute.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.