[lkml]   [2003]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: /proc/stat's intr field looks odd, although /proc/interrupts seems correct
> On Sun, 2003-08-10 at 20:48, Randy.Dunlap wrote:
>> Yes, for most architectures, it prints interrupts from 0 thru NR_IRQS:
>> for (i = 0 ; i < NR_IRQS ; i++)
>> len += sprintf(page + len, " %u", kstat_irqs(i));
>> and NR_IRQS varies depending on the kernel build options, but (for x86) is
>> usually either 16 or 224.
> Eww. So I guess on SMP, it is 224.


> Might be nice to only print lines that are registered, like
> /proc/interrupts. But then you have no way of knowing which field is which
> interrupt line. Ugh.
> How can we expect anything to parse that line?

Ugh-ly? We can move it to sysfs and then change the file format
to intnum:count pairs (e.g.).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.074 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site