Changes in kernel/generic/src/cap/cap.c [82d515e9:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cap/cap.c
r82d515e9 rb7fd2a0 124 124 * @param task Task for which to allocate the info structure. 125 125 */ 126 int caps_task_alloc(task_t *task)126 errno_t caps_task_alloc(task_t *task) 127 127 { 128 128 task->cap_info = (cap_info_t *) malloc(sizeof(cap_info_t), … … 257 257 * @param task Task for which to allocate the new capability. 258 258 * 259 * @return New capability handle on success. 260 * @return Negative error code in case of error. 261 */ 262 cap_handle_t cap_alloc(task_t *task) 259 * @param[out] handle New capability handle on success. 260 * 261 * @return An error code in case of error. 262 */ 263 errno_t cap_alloc(task_t *task, cap_handle_t *handle) 263 264 { 264 265 cap_t *cap = NULL; 265 cap_handle_t handle;266 266 267 267 /* … … 293 293 294 294 cap->state = CAP_STATE_ALLOCATED; 295 handle = cap->handle;296 mutex_unlock(&task->cap_info->lock); 297 298 return handle;295 *handle = cap->handle; 296 mutex_unlock(&task->cap_info->lock); 297 298 return EOK; 299 299 } 300 300
Note:
See TracChangeset
for help on using the changeset viewer.