cregit-Linux how code gets into the kernel

Release 4.14 arch/blackfin/kernel/exception.c

/* Basic functions for adding/removing custom exception handlers
 *
 * Copyright 2004-2009 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later
 */

#include <linux/module.h>
#include <asm/irq_handler.h>


int bfin_request_exception(unsigned int exception, void (*handler)(void)) { void (*curr_handler)(void); if (exception > 0x3F) return -EINVAL; curr_handler = ex_table[exception]; if (curr_handler != ex_replaceable) return -EBUSY; ex_table[exception] = handler; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Robin Getz64100.00%1100.00%
Total64100.00%1100.00%

EXPORT_SYMBOL(bfin_request_exception);
int bfin_free_exception(unsigned int exception, void (*handler)(void)) { void (*curr_handler)(void); if (exception > 0x3F) return -EINVAL; curr_handler = ex_table[exception]; if (curr_handler != handler) return -EBUSY; ex_table[exception] = ex_replaceable; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Robin Getz64100.00%1100.00%
Total64100.00%1100.00%

EXPORT_SYMBOL(bfin_free_exception);

Overall Contributors

PersonTokensPropCommitsCommitProp
Robin Getz145100.00%1100.00%
Total145100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.