Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions kernel/ksu.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
#include "ksud.h"
#include "supercalls.h"

static struct workqueue_struct *ksu_workqueue;

bool ksu_queue_work(struct work_struct *work)
{
return queue_work(ksu_workqueue, work);
}

int __init kernelsu_init(void)
{
Expand All @@ -34,6 +40,8 @@ int __init kernelsu_init(void)

ksu_core_init();

ksu_workqueue = alloc_ordered_workqueue("kernelsu_work_queue", 0);

ksu_allowlist_init();

ksu_throne_tracker_init();
Expand Down Expand Up @@ -61,6 +69,8 @@ void kernelsu_exit(void)

ksu_observer_exit();

destroy_workqueue(ksu_workqueue);

#ifdef CONFIG_KPROBES
ksu_ksud_exit();
ksu_sucompat_exit();
Expand Down
2 changes: 2 additions & 0 deletions kernel/ksu.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ struct app_profile {
};
};

bool ksu_queue_work(struct work_struct *work);

static inline int startswith(char *s, char *prefix)
{
return strncmp(s, prefix, strlen(prefix));
Expand Down