lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 23/35] Add support for Xen event channels.
Date

On 22 Mar 2006, at 08:36, Arjan van de Ven wrote:

>> +#include <linux/interrupt.h>
>> +#include <linux/sched.h>
>> +#include <linux/kernel_stat.h>
>> +#include <linux/version.h>
>
> this highly looks that it's not possible to be used outside the linux
> kernel so the license is odd

It can't be used directly, but other OS ports steal fairly directly
from this file (and others). For example OpenSolaris and the BSDs.

>> +static int find_unbound_irq(void)
>> +{
>> + int irq;
>> +
>> + for (irq = 0; irq < NR_IRQS; irq++)
>> + if (irq_bindcount[irq] == 0)
>> + break;
>> +
>> + if (irq == NR_IRQS) {
>> + printk(KERN_ERR "No available IRQ to bind to: increase
>> NR_IRQS!\n");
>
> there is no way to share interrupts? A shame

256 allocatable IRQs seems plenty to be getting on with. Shared IRQs
can certainly be added later -- there are no hidden gotchas I'm pretty
sure.

-- Keir

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-22 12:32    [W:0.079 / U:7.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site