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

Changeset c1f68b0 in mainline for kernel/generic/include/cap/cap.h


Ignore:
Timestamp:
2017-10-28T11:40:41Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial
Children:
eca820c
Parents:
15d9fe6
Message:

Use recursive mutex to protect task_t::cap_info

This makes it possible to use the mutex-protected capability APIs even
inside caps_apply_to_kobject_type() callbacks. Now there is no need to
provide eg. cap_unpublish_locked() and cap_free_locked(). Likewise,
ipc_irq_unsubscribe() can be used when the task's cap_info is already
locked by the current thread inside of a callback.

File:
1 edited

Legend:

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

    r15d9fe6 rc1f68b0  
    121121extern void cap_publish(struct task *, cap_handle_t, kobject_t *);
    122122extern kobject_t *cap_unpublish(struct task *, cap_handle_t, kobject_type_t);
    123 extern kobject_t *cap_unpublish_locked(struct task *, cap_handle_t,
    124     kobject_type_t);
    125123extern void cap_free(struct task *, cap_handle_t);
    126 extern void cap_free_locked(struct task *, cap_handle_t);
    127124
    128125extern void kobject_initialize(kobject_t *, kobject_type_t, void *,
Note: See TracChangeset for help on using the changeset viewer.