zephyr/kernel/include
Andrew Boie 04caa679c9 userspace: allow thread IDs to be re-used
It's currently too easy to run out of thread IDs as they
are never re-used on thread exit.

Now the kernel maintains a bitfield of in-use thread IDs,
updated on thread creation and termination. When a thread
exits, the permission bitfield for all kernel objects is
updated to revoke access for that retired thread ID, so that
a new thread re-using that ID will not gain access to objects
that it should not have.

Because of these runtime updates, setting the permission
bitmap for an object to all ones for a "public" object doesn't
work properly any more; a flag is now set for this instead.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-10-16 16:16:28 -07:00
..
gen_offset.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
kernel_offsets.h syscalls: greatly simplify system call declaration 2017-09-29 13:02:20 -07:00
kernel_structs.h userspace: allow thread IDs to be re-used 2017-10-16 16:16:28 -07:00
ksched.h userspace: de-initialize aborted threads 2017-10-16 16:16:28 -07:00
nano_internal.h kernel: add memory domain APIs 2017-09-29 16:48:53 -07:00
offsets_short.h kernel/arch: streamline thread user options 2017-01-24 13:34:50 +00:00
syscall_handler.h userspace: allow thread IDs to be re-used 2017-10-16 16:16:28 -07:00
timeout_q.h timer: k_timer_start should accept 0 as duration parameter. 2017-09-06 10:18:39 -07:00
wait_q.h Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00