cregit-Linux how code gets into the kernel

Release 4.11 drivers/tty/hvc/hvc_irq.c

Directory: drivers/tty/hvc
/*
 * Copyright IBM Corp. 2001,2008
 *
 * This file contains the IRQ specific code for hvc_console
 *
 */

#include <linux/interrupt.h>

#include "hvc_console.h"


static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) { /* if hvc_poll request a repoll, then kick the hvcd thread */ if (hvc_poll(dev_instance)) hvc_kick(); /* * We're safe to always return IRQ_HANDLED as the hvcd thread will * iterate through each hvc_struct. */ return IRQ_HANDLED; }

Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger2796.43%150.00%
Sam Mendoza-Jonas13.57%150.00%
Total28100.00%2100.00%

/* * For IRQ based systems these callbacks can be used */
int notifier_add_irq(struct hvc_struct *hp, int irq) { int rc; if (!irq) { hp->irq_requested = 0; return 0; } rc = request_irq(irq, hvc_handle_interrupt, hp->flags, "hvc_console", hp); if (!rc) hp->irq_requested = 1; return rc; }

Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger6095.24%150.00%
Sam Mendoza-Jonas34.76%150.00%
Total63100.00%2100.00%


void notifier_del_irq(struct hvc_struct *hp, int irq) { if (!hp->irq_requested) return; free_irq(irq, hp); hp->irq_requested = 0; }

Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger3191.18%150.00%
Milton D. Miller II38.82%150.00%
Total34100.00%2100.00%


void notifier_hangup_irq(struct hvc_struct *hp, int irq) { notifier_del_irq(hp, irq); }

Contributors

PersonTokensPropCommitsCommitProp
Hendrik Brueckner20100.00%1100.00%
Total20100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger12682.35%125.00%
Hendrik Brueckner2013.07%125.00%
Sam Mendoza-Jonas42.61%125.00%
Milton D. Miller II31.96%125.00%
Total153100.00%4100.00%
Directory: drivers/tty/hvc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.