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

Changeset 90efa3b in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2018-11-09T22:03:24Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
deacd722
Parents:
c222816
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-08 02:44:44)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
Message:

Remove flags from ipc_call_alloc()

File:
1 edited

Legend:

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

    rc222816 r90efa3b  
    108108 * TASK->answerbox.
    109109 *
    110  * @param flags Parameters for slab_alloc (e.g FRAME_ATOMIC).
    111  *
    112  * @return If flags permit it, return NULL, or initialized kernel
    113  *         call structure with one reference.
    114  *
    115  */
    116 call_t *ipc_call_alloc(unsigned int flags)
     110 * @return Initialized kernel call structure with one reference, or NULL.
     111 *
     112 */
     113call_t *ipc_call_alloc(void)
    117114{
    118115        // TODO: Allocate call and kobject in single allocation
    119116
    120         call_t *call = slab_alloc(call_cache, flags);
     117        call_t *call = slab_alloc(call_cache, FRAME_ATOMIC);
    121118        if (!call)
    122119                return NULL;
    123120
    124         kobject_t *kobj;
    125         if (flags & FRAME_ATOMIC)
    126                 kobj = (kobject_t *) malloc(sizeof(kobject_t));
    127         else
    128                 kobj = (kobject_t *) nfmalloc(sizeof(kobject_t));
    129 
     121        kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t));
    130122        if (!kobj) {
    131123                slab_free(call_cache, call);
Note: See TracChangeset for help on using the changeset viewer.