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

Changeset 63d8f43 in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2017-09-04T19:38:28Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
fa32c9f
Parents:
30c27e9
Message:

Allocate the kobjects referenced by capabilities dynamically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r30c27e9 r63d8f43  
    743743        all_clean = true;
    744744        for_each_cap_current(cap, CAP_TYPE_PHONE) {
    745                 phone_t *phone = &cap->phone;
     745                phone_t *phone = (phone_t *) cap->kobject;
    746746
    747747                mutex_lock(&phone->lock);
     
    820820        /* Disconnect all our phones ('ipc_phone_hangup') */
    821821        for_each_cap_current(cap, CAP_TYPE_PHONE) {
    822                 phone_t *phone = &cap->phone;
     822                phone_t *phone = (phone_t *) cap->kobject;
    823823                ipc_phone_hangup(phone);
    824824        }
     
    913913       
    914914        for_each_cap(task, cap, CAP_TYPE_PHONE) {
    915                 phone_t *phone = &cap->phone;
     915                phone_t *phone = (phone_t *) cap->kobject;
    916916       
    917917                if (SYNCH_FAILED(mutex_trylock(&phone->lock))) {
Note: See TracChangeset for help on using the changeset viewer.