Changeset 6abfd250 in mainline
- Timestamp:
- 2017-09-19T19:18:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 866a8f3
- Parents:
- 9e87562
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cap/cap.h
r9e87562 r6abfd250 77 77 extern void caps_task_free(struct task *); 78 78 extern void caps_task_init(struct task *); 79 extern bool caps_apply_to_ all(struct task *, cap_type_t,79 extern bool caps_apply_to_type(struct task *, cap_type_t, 80 80 bool (*)(cap_t *, void *), void *); 81 81 extern void caps_lock(struct task *); -
kernel/generic/src/cap/cap.c
r9e87562 r6abfd250 71 71 } 72 72 73 bool caps_apply_to_ all(task_t *task, cap_type_t type,73 bool caps_apply_to_type(task_t *task, cap_type_t type, 74 74 bool (*cb)(cap_t *, void *), void *arg) 75 75 { -
kernel/generic/src/ipc/ipc.c
r9e87562 r6abfd250 790 790 */ 791 791 restart = false; 792 if (caps_apply_to_ all(TASK, CAP_TYPE_PHONE, phone_cap_wait_cb,792 if (caps_apply_to_type(TASK, CAP_TYPE_PHONE, phone_cap_wait_cb, 793 793 &restart)) { 794 794 /* Got into cleanup */ … … 840 840 841 841 /* Disconnect all our phones ('ipc_phone_hangup') */ 842 caps_apply_to_ all(TASK, CAP_TYPE_PHONE, phone_cap_cleanup_cb, NULL);842 caps_apply_to_type(TASK, CAP_TYPE_PHONE, phone_cap_cleanup_cb, NULL); 843 843 844 844 /* Unsubscribe from any event notifications. */ … … 846 846 847 847 /* Disconnect all connected IRQs */ 848 caps_apply_to_ all(TASK, CAP_TYPE_IRQ, irq_cap_cleanup_cb, NULL);848 caps_apply_to_type(TASK, CAP_TYPE_IRQ, irq_cap_cleanup_cb, NULL); 849 849 850 850 /* Disconnect all phones connected to our regular answerbox */ … … 963 963 printf("[phone cap] [calls] [state\n"); 964 964 965 caps_apply_to_ all(task, CAP_TYPE_PHONE, print_task_phone_cb, NULL);965 caps_apply_to_type(task, CAP_TYPE_PHONE, print_task_phone_cb, NULL); 966 966 967 967 irq_spinlock_lock(&task->lock, true);
Note:
See TracChangeset
for help on using the changeset viewer.