Release 4.14 arch/um/kernel/sigio.c
/*
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com)
* Licensed under the GPL
*/
#include <linux/interrupt.h>
#include <irq_kern.h>
#include <os.h>
#include <sigio.h>
/* Protected by sigio_lock() called from write_sigio_workaround */
static int sigio_irq_fd = -1;
static irqreturn_t sigio_interrupt(int irq, void *data)
{
char c;
os_read_file(sigio_irq_fd, &c, sizeof(c));
reactivate_fd(sigio_irq_fd, SIGIO_WRITE_IRQ);
return IRQ_HANDLED;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 35 | 89.74% | 4 | 80.00% |
Paolo 'Blaisorblade' Giarrusso | 4 | 10.26% | 1 | 20.00% |
Total | 39 | 100.00% | 5 | 100.00% |
int write_sigio_irq(int fd)
{
int err;
err = um_request_irq(SIGIO_WRITE_IRQ, fd, IRQ_READ, sigio_interrupt,
0, "write sigio", NULL);
if (err) {
printk(KERN_ERR "write_sigio_irq : um_request_irq failed, "
"err = %d\n", err);
return -1;
}
sigio_irq_fd = fd;
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 55 | 98.21% | 3 | 75.00% |
Theodore Y. Ts'o | 1 | 1.79% | 1 | 25.00% |
Total | 56 | 100.00% | 4 | 100.00% |
/* These are called from os-Linux/sigio.c to protect its pollfds arrays. */
static DEFINE_SPINLOCK(sigio_spinlock);
void sigio_lock(void)
{
spin_lock(&sigio_spinlock);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
void sigio_unlock(void)
{
spin_unlock(&sigio_spinlock);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 137 | 91.95% | 7 | 63.64% |
Thomas Gleixner | 4 | 2.68% | 1 | 9.09% |
Paolo 'Blaisorblade' Giarrusso | 4 | 2.68% | 1 | 9.09% |
Al Viro | 3 | 2.01% | 1 | 9.09% |
Theodore Y. Ts'o | 1 | 0.67% | 1 | 9.09% |
Total | 149 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.