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 8590193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:14:21+00:00 2026-06-11T23:14:21+00:00

The kernel documentation says about free_irq the following : This function must not be

  • 0

The kernel documentation says about free_irq the following :

This function must not be called from interrupt context.

Does it include software interrupts?
How can I free an IRQ in a software IRQ function?

Thanks for your help,

  • 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-11T23:14:22+00:00Added an answer on June 11, 2026 at 11:14 pm

    Yes, that rule includes softirq context. The fact that you think you need to call free_irq() from softirq context is an indication that your design is a bit out of the ordinary — in normal cases, free_irq() is used when a device being shut down, which is almost always from process context.

    However if you really need to do it, the thing to do would be to defer it to process context via schedule_work() or some similar workqueue function. Of course you can’t wait in your softirq for that deferred work to complete, so you’ll have to defer any other work that comes after freeing the IRQ also.

    It might be possible to give a better answer if you gave a bit more information about why you’re trying to call free_irq() from interrupt context.

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

Sidebar

Related Questions

How to use linux kernel's find_module() function? The documentation says must hold module_mutex. Does
The documentation for write() says: Returns false to indicate that the kernel buffer is
At the bottom of Kernel#sprintf 's documentation it has this example: sprintf(%u, -123) #=>
Kernel threads do context switch at kernel level instead of process level. I am
I'm writing a kernel where I need to read certain statistics from iw_statistics structure,
I'm writing a kernel module that needs to read the value of bitrate from
I do not know if this the correct forum to ask this question but
I recently downloaded linux source from http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2 . I came across the below paragraph
I was reading through the network device driver code.My driver follows the driver-model.REF:kernel/Documentation/driver-model. Reading
I am using the real time kernel embedded. In the kernel documentation it is

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.