Initialize the capability info structure * * @param task Task for which to initialize the info structure. */
| 168 | * @param task Task for which to initialize the info structure. |
| 169 | */ |
| 170 | void 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 | * |
no test coverage detected