Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6abfd250 in mainline


Ignore:
Timestamp:
2017-09-19T19:18:40Z (4 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
866a8f3
Parents:
9e87562
Message:

Rename caps_apply_to_all to caps_apply_to_type

Location:
kernel/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/cap/cap.h

    r9e87562 r6abfd250  
    7777extern void caps_task_free(struct task *);
    7878extern void caps_task_init(struct task *);
    79 extern bool caps_apply_to_all(struct task *, cap_type_t,
     79extern bool caps_apply_to_type(struct task *, cap_type_t,
    8080    bool (*)(cap_t *, void *), void *);
    8181extern void caps_lock(struct task *);
  • kernel/generic/src/cap/cap.c

    r9e87562 r6abfd250  
    7171}
    7272
    73 bool caps_apply_to_all(task_t *task, cap_type_t type,
     73bool caps_apply_to_type(task_t *task, cap_type_t type,
    7474    bool (*cb)(cap_t *, void *), void *arg)
    7575{
  • kernel/generic/src/ipc/ipc.c

    r9e87562 r6abfd250  
    790790         */
    791791        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,
    793793            &restart)) {
    794794                /* Got into cleanup */
     
    840840
    841841        /* 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);
    843843       
    844844        /* Unsubscribe from any event notifications. */
     
    846846       
    847847        /* 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);
    849849       
    850850        /* Disconnect all phones connected to our regular answerbox */
     
    963963        printf("[phone cap] [calls] [state\n");
    964964       
    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);
    966966       
    967967        irq_spinlock_lock(&task->lock, true);
Note: See TracChangeset for help on using the changeset viewer.