summaryrefslogtreecommitdiff
path: root/sys/include/arch/amd64/intr.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-13 18:55:48 -0400
committerIan Moffett <ian@osmora.org>2025-07-13 18:55:48 -0400
commit25d4aca4bf49bdbee6a7a35ef5d63ae45138ddf5 (patch)
tree877a3acb25d02e72449701e52808f5d2345d4248 /sys/include/arch/amd64/intr.h
parent2f1902f6e554f6bc36b5a3e4cf8add8c3e5197cc (diff)
kernel/amd64: Track interrupt countmain
Keep track of how many times an interrupt fires, this can be used for interrupt statistics later on. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch/amd64/intr.h')
-rw-r--r--sys/include/arch/amd64/intr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/intr.h b/sys/include/arch/amd64/intr.h
index c848b6f..1877d20 100644
--- a/sys/include/arch/amd64/intr.h
+++ b/sys/include/arch/amd64/intr.h
@@ -69,9 +69,11 @@ struct intr_data {
* [r]: Required for intr_register()
* [o]: Not required for intr_register()
* [v]: Returned by intr_register()
+ * [i]: Internal
*
* @func: The actual handler [r]
* @data: Interrupt data [o/v]
+ * @nintr: Number of times it fired [o]
* @name: Interrupt name [v]
* @priority: Interrupt priority [r]
* @irq: Interrupt request number [o]
@@ -91,6 +93,7 @@ struct intr_data {
*/
struct intr_hand {
int(*func)(void *);
+ size_t nintr;
struct intr_data data;
char *name;
int priority;