aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/conf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 13:19:10 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 13:19:10 +0300
commit06cd3ac67f9e039219df21d4bf63bf53b666355a (patch)
treeca4b62aee1deb9465737c0635747a5a42f704baf /src/uapi/conf.c
parent39175324e152b6b1e905cd45ecec31e4b667ebea (diff)
downloadkmi-06cd3ac67f9e039219df21d4bf63bf53b666355a.tar.gz
kmi-06cd3ac67f9e039219df21d4bf63bf53b666355a.zip
expose max number of concurrent threads to users
+ Can be used to build fast hashmaps to speed up ipc
Diffstat (limited to 'src/uapi/conf.c')
-rw-r--r--src/uapi/conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uapi/conf.c b/src/uapi/conf.c
index 6a801f3..24a4706 100644
--- a/src/uapi/conf.c
+++ b/src/uapi/conf.c
@@ -76,6 +76,10 @@ SYSCALL_DEFINE2(get_conf)(struct tcb *t, sys_arg_t param, sys_arg_t d0)
val = order_size(d0);
break;
+ case CONF_MAX_THREADS:
+ val = max_tcbs();
+ break;
+
default:
return_args1(t, ERR_NF);
}