Changeset e5f5ce0 in mainline for kernel/generic/src/ipc/ipcrsc.c


Ignore:
Timestamp:
2017-09-04T20:25:18Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e87562
Parents:
431c402
Message:

Create a slab cache for allocating phone_t structures

File:
1 edited

Legend:

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

    r431c402 re5f5ce0  
    208208        int handle = cap_alloc(task);
    209209        if (handle >= 0) {
    210                 phone_t *phone = malloc(sizeof(phone_t), FRAME_ATOMIC);
     210                phone_t *phone = slab_alloc(phone_slab, FRAME_ATOMIC);
    211211                if (!phone) {
    212212                        cap_free(TASK, handle);
     
    248248        assert(phone->state == IPC_PHONE_CONNECTING);
    249249       
    250         free(phone);
     250        slab_free(phone_slab, phone);
    251251        cap_free(TASK, handle);
    252252}
Note: See TracChangeset for help on using the changeset viewer.