HelenOS sources
cap_info 99 kernel/generic/include/proc/task.h cap_info_t *cap_info;
cap_info 147 kernel/generic/src/cap/cap.c task->cap_info = (cap_info_t *) malloc(sizeof(cap_info_t));
cap_info 148 kernel/generic/src/cap/cap.c if (!task->cap_info)
cap_info 150 kernel/generic/src/cap/cap.c task->cap_info->handles = ra_arena_create();
cap_info 151 kernel/generic/src/cap/cap.c if (!task->cap_info->handles)
cap_info 153 kernel/generic/src/cap/cap.c if (!ra_span_add(task->cap_info->handles, CAPS_START, CAPS_SIZE))
cap_info 155 kernel/generic/src/cap/cap.c if (!hash_table_create(&task->cap_info->caps, 0, 0, &caps_ops))
cap_info 160 kernel/generic/src/cap/cap.c ra_arena_destroy(task->cap_info->handles);
cap_info 162 kernel/generic/src/cap/cap.c free(task->cap_info);
cap_info 172 kernel/generic/src/cap/cap.c mutex_initialize(&task->cap_info->lock, MUTEX_RECURSIVE);
cap_info 175 kernel/generic/src/cap/cap.c list_initialize(&task->cap_info->type_list[t]);
cap_info 184 kernel/generic/src/cap/cap.c hash_table_destroy(&task->cap_info->caps);
cap_info 185 kernel/generic/src/cap/cap.c ra_arena_destroy(task->cap_info->handles);
cap_info 186 kernel/generic/src/cap/cap.c free(task->cap_info);
cap_info 205 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 206 kernel/generic/src/cap/cap.c list_foreach_safe(task->cap_info->type_list[type], cur, next) {
cap_info 212 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 243 kernel/generic/src/cap/cap.c assert(mutex_locked(&task->cap_info->lock));
cap_info 248 kernel/generic/src/cap/cap.c ht_link_t *link = hash_table_find(&task->cap_info->caps, &handle);
cap_info 267 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 270 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 274 kernel/generic/src/cap/cap.c if (!ra_alloc(task->cap_info->handles, 1, 1, &hbase)) {
cap_info 276 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 280 kernel/generic/src/cap/cap.c hash_table_insert(&task->cap_info->caps, &cap->caps_link);
cap_info 284 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 303 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 310 kernel/generic/src/cap/cap.c list_append(&cap->type_link, &task->cap_info->type_list[kobj->type]);
cap_info 311 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 343 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 350 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 358 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 380 kernel/generic/src/cap/cap.c mutex_lock(&cap->task->cap_info->lock);
cap_info 384 kernel/generic/src/cap/cap.c mutex_unlock(&cap->task->cap_info->lock);
cap_info 399 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 404 kernel/generic/src/cap/cap.c hash_table_remove_item(&task->cap_info->caps, &cap->caps_link);
cap_info 405 kernel/generic/src/cap/cap.c ra_free(task->cap_info->handles, cap_handle_raw(handle), 1);
cap_info 407 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
cap_info 452 kernel/generic/src/cap/cap.c mutex_lock(&task->cap_info->lock);
cap_info 460 kernel/generic/src/cap/cap.c mutex_unlock(&task->cap_info->lock);
HelenOS homepage, sources at GitHub