kernel: Rename basic "int" functions to "interrupt" (or at least "intr").

"int" of course is also an abbrevation for "integer", so having
two abbreviations is sometimes confusing. The BeOS functions
just use "interrupt" (e.g. "install_io_interrupt_handler"); it
seems we inherited the "int" abbreviation from NewOS.

The basic kernel methods and files related to interrupts are
here adjusted to drop the abbreviation and just use "interrupt(s)".
The architecture-specific functions ("arch_int_*") are mostly
moment left alone for now, though of course architecture-specific
usages of the generic kernel methods are adjusted.

Change-Id: Ic113ea1280a3c78e25f8ca3cc55b24ed5f594eae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9119
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2025-03-12 01:58:33 +00:00
committed by waddlesplash
parent ed5c4d8a2d
commit a97c4affc9
90 changed files with 143 additions and 145 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
#include <setjmp.h>
#include <int.h>
#include <interrupts.h>
#include <smp.h>
#include <timer.h>
#include <arch/cpu.h>
@@ -5,8 +5,8 @@
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_INT_H
#define _KERNEL_INT_H
#ifndef _KERNEL_INTERRUPTS_H
#define _KERNEL_INTERRUPTS_H
#include <KernelExport.h>
@@ -47,11 +47,11 @@ struct irq_assignment {
extern "C" {
#endif
status_t int_init(struct kernel_args* args);
status_t int_init_post_vm(struct kernel_args* args);
status_t int_init_io(struct kernel_args* args);
status_t int_init_post_device_manager(struct kernel_args* args);
int int_io_interrupt_handler(int vector, bool levelTriggered);
status_t interrupts_init(struct kernel_args* args);
status_t interrupts_init_post_vm(struct kernel_args* args);
status_t interrupts_init_io(struct kernel_args* args);
status_t interrupts_init_post_device_manager(struct kernel_args* args);
int io_interrupt_handler(int vector, bool levelTriggered);
bool interrupts_enabled(void);
@@ -85,4 +85,5 @@ void free_io_interrupt_vectors(int32 count, int32 startVector);
void assign_io_interrupt_to_cpu(int32 vector, int32 cpu);
#endif /* _KERNEL_INT_H */
#endif /* _KERNEL_INTERRUPTS_H */
+1 -1
View File
@@ -9,7 +9,7 @@
#include <cpu.h>
#include <int.h>
#include <interrupts.h>
#include <smp.h>
#include <thread_types.h>
+1 -1
View File
@@ -94,7 +94,7 @@ int32 smp_get_num_cpus(void);
void smp_set_num_cpus(int32 numCPUs);
int32 smp_get_current_cpu(void);
int smp_intercpu_int_handler(int32 cpu);
int smp_intercpu_interrupt_handler(int32 cpu);
void call_single_cpu(uint32 targetCPU, void (*func)(void*, int), void* cookie);
void call_single_cpu_sync(uint32 targetCPU, void (*func)(void*, int),
+1 -1
View File
@@ -12,7 +12,7 @@
#include <shared/AutoLocker.h>
#include <int.h>
#include <interrupts.h>
#include <lock.h>