LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-01-2023, 03:08 AM   #1
Tony.He90
LQ Newbie
 
Registered: Aug 2023
Posts: 1

Rep: Reputation: 0
how to check a specific irq is disabled in linux kernel?


Hi,

I want to know how to check a specific irq is disabled in linux kernel. I can not use the function of irqs_disabled() because irqs_disabled() is to know the state of interrupt system. My question is similar
to this one[1] in stackoverflow. However, no answer there.

[1]https://stackoverflow.com/questions/68554488/how-can-i-check-a-specific-irq-is-disabled-in-linux-kernel

Tony
 
Old 08-27-2023, 12:51 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, Welcome to LQ!

The /proc directory is a ...
ref.https://www.cyberciti.biz/faq/howto-...s-under-linux/
Quote:
The proc filesystem is a pseudo filesystem which is used as an interface to kernel data structures.
here's one way...
Code:
cat /proc/interrupts | grep nvidia
  80:          0          0          0          0          0          0     733391          0  IR-PCI-MSI 4718592-edge      nvidia
<edit>
A more suitable example could be...
Code:
cat /proc/interrupts | grep 27
  27:          0          0          0          0          0          0          0          0   PCI-MSI 4096-edge      AMD-Vi
  64:          0          0          0          0          0          0          0          0  IR-PCI-MSI 5249027-edge      xhci_hcd
</edit>

I hope this helps.

Last edited by GlennsPref; 08-27-2023 at 12:55 AM. Reason: examples... grep for irq number
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RHEL 6.4 Error - kernel:do_IRQ: 1.205 No irq handler for vector (irq -1) capperdog Linux - Newbie 4 02-28-2014 08:56 AM
ISR mapping, Kernel IRQ to Real Processor IRQ Rajkamal Linux - Kernel 1 10-24-2012 08:28 AM
UNIQ IRQ and Shared IRQ...I want to make Shared IRQ routin chxooi Linux - Hardware 1 06-12-2010 07:30 AM
Kernel config problems. IRQ's disabled David the H. Linux - Kernel 7 06-12-2006 06:32 PM
Irq 10 disabled after kernel switch Taikon Slackware 3 02-08-2006 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration