HelenOS sources

cap_alloc         135 kernel/generic/include/cap/cap.h extern errno_t cap_alloc(struct task *, cap_handle_t *);
cap_alloc          71 kernel/generic/src/ipc/ipcrsc.c 	errno_t rc = cap_alloc(task, &handle);
cap_alloc         342 kernel/generic/src/ipc/irq.c 	errno_t rc = cap_alloc(TASK, &handle);
cap_alloc         824 kernel/generic/src/ipc/sysipc.c 	rc = cap_alloc(TASK, &handle);
cap_alloc         105 kernel/generic/src/synch/syswaitq.c 	errno_t rc = cap_alloc(TASK, &handle);
HelenOS homepage, sources at GitHub