[PATCH RFC 02/11] um: add a simple time_travel_handler implementation
Benjamin Beichler
benjamin.beichler at uni-rostock.de
Fri Nov 3 09:41:40 PDT 2023
Use in uml drivers, which do not need more than scheduling the interrupt
at the time of a follow up timetravel GET-Message.
Signed-off-by: Benjamin Beichler <benjamin.beichler at uni-rostock.de>
---
arch/um/include/shared/irq_user.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/um/include/shared/irq_user.h b/arch/um/include/shared/irq_user.h
index da0f6eea30d0..8c336c79ffb9 100644
--- a/arch/um/include/shared/irq_user.h
+++ b/arch/um/include/shared/irq_user.h
@@ -17,6 +17,13 @@ enum um_irq_type {
struct siginfo;
extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
void sigio_run_timetravel_handlers(void);
+
+struct time_travel_event;
+extern void time_travel_add_irq_event(struct time_travel_event *ev);
+static inline void simple_timetravel_handler(int irq, int fd, void *data,
+ struct time_travel_event *ev) {
+ time_travel_add_irq_event(ev);
+}
extern void free_irq_by_fd(int fd);
extern void deactivate_fd(int fd, int irqnum);
extern int deactivate_all_fds(void);
--
2.34.1
More information about the linux-um
mailing list