From 06cd3ac67f9e039219df21d4bf63bf53b666355a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 14 Jul 2024 13:19:10 +0300 Subject: expose max number of concurrent threads to users + Can be used to build fast hashmaps to speed up ipc --- src/uapi/conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/uapi/conf.c') 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); } -- cgit v1.3