mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 05:14:41 -04:00
rv: Export task monitor slot and react symbols
Export rv_get_task_monitor_slot, rv_put_task_monitor_slot, and rv_react to GPL modules so they can be accessed by KUnit and future monitors built as kernel modules. Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20260723074534.43521-12-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
This commit is contained in:
@@ -181,6 +181,7 @@ int rv_get_task_monitor_slot(void)
|
||||
|
||||
return -EBUSY;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rv_get_task_monitor_slot);
|
||||
|
||||
void rv_put_task_monitor_slot(int slot)
|
||||
{
|
||||
@@ -197,6 +198,7 @@ void rv_put_task_monitor_slot(int slot)
|
||||
|
||||
task_monitor_slots[slot] = false;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rv_put_task_monitor_slot);
|
||||
|
||||
/*
|
||||
* Monitors with a parent are nested,
|
||||
|
||||
@@ -479,3 +479,4 @@ void rv_react(struct rv_monitor *monitor, const char *msg, ...)
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rv_react);
|
||||
|
||||
Reference in New Issue
Block a user