mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
dummy-irq
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Changes to this file are automatically used in the new kernel
|
||||
# after ./run, no need to do anything different.
|
||||
# Changes to this file are automatically trigger kernel reconfigures
|
||||
# even without using the linux-reconfigure target.
|
||||
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
@@ -108,3 +108,19 @@ CONFIG_ARM_AMBA=y
|
||||
CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_PL061=y
|
||||
|
||||
# run -a arm
|
||||
#
|
||||
# In target:
|
||||
#
|
||||
# modprobe dummy-irq irq=34
|
||||
# insmod /platform_device.ko
|
||||
#
|
||||
# Outcome:
|
||||
#
|
||||
# lkmc_platform_device_write offset=0 value=12345678 size=4
|
||||
# dummy-irq: interrupt occurred on IRQ 34
|
||||
#
|
||||
# When the device generates an IRQ,
|
||||
# the dummy module also snoops it.
|
||||
CONFIG_DUMMY_IRQ=m
|
||||
|
||||
Reference in New Issue
Block a user