MCPcopy Create free account
hub / github.com/HelenOS/helenos / caps_task_init

Function caps_task_init

kernel/generic/src/cap/cap.c:170–176  ·  view source on GitHub ↗

Initialize the capability info structure * * @param task Task for which to initialize the info structure. */

Source from the content-addressed store, hash-verified

168 * @param task Task for which to initialize the info structure.
169 */
170void caps_task_init(task_t *task)
171{
172 mutex_initialize(&task->cap_info->lock, MUTEX_RECURSIVE);
173
174 for (kobject_type_t t = 0; t < KOBJECT_TYPE_MAX; t++)
175 list_initialize(&task->cap_info->type_list[t]);
176}
177
178/** Deallocate the capability info structure
179 *

Callers 1

task_createFunction · 0.85

Calls 2

mutex_initializeFunction · 0.85
list_initializeFunction · 0.50

Tested by

no test coverage detected