commit | e12857aabfbcb87b321be4398ac15311d932e8c7 | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Tue Oct 17 11:38:26 2017 -0700 |
committer | Andrew Boie <andrewboie@gmail.com> | Wed Oct 18 07:37:38 2017 -0700 |
tree | 8fff3ed264c34e876b260b4d0bdbab05e704ab60 | |
parent | 877f82e847ac6a10c9140f0b46179ec11fe294ea [diff] |
kernel: add k_thread_access_grant() This is a runtime counterpart to K_THREAD_ACCESS_GRANT(). This function takes a thread and a NULL-terminated list of kernel objects and runs k_object_access_grant() on each of them. This function doesn't require any special permissions and doesn't need to become a system call. __attribute__((sentinel)) added to warn users if they omit the required NULL termination. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>