Changeset 436a0a5 in mainline for kernel/generic/include


Ignore:
Timestamp:
2018-11-09T22:04:01Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95d45482
Parents:
88e43bc (diff), abf6c01 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

(merge) Reduce the number of blocking allocations in the kernel

Location:
kernel/generic/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/fifo.h

    r88e43bc r436a0a5  
    115115 */
    116116#define fifo_create(name) \
    117         name.fifo = nfmalloc(sizeof(*name.fifo) * name.items)
     117        name.fifo = malloc(sizeof(*name.fifo) * name.items)
    118118
    119119#endif
  • kernel/generic/include/ipc/ipc.h

    r88e43bc r436a0a5  
    4747struct answerbox;
    4848struct task;
     49struct call;
    4950
    5051typedef enum {
     
    6768        struct task *caller;
    6869        struct answerbox *callee;
     70        /* A call prepared for hangup ahead of time, so that it cannot fail. */
     71        struct call *hangup_call;
    6972        ipc_phone_state_t state;
    7073        atomic_t active_calls;
     
    171174extern void ipc_init(void);
    172175
    173 extern call_t *ipc_call_alloc(unsigned int);
    174 extern void ipc_call_free(call_t *);
    175 extern void ipc_call_hold(call_t *);
    176 extern void ipc_call_release(call_t *);
     176extern call_t *ipc_call_alloc(void);
    177177
    178178extern errno_t ipc_call_sync(phone_t *, call_t *);
  • kernel/generic/include/mm/as.h

    r88e43bc r436a0a5  
    325325
    326326/* Introspection functions. */
    327 extern void as_get_area_info(as_t *, as_area_info_t **, size_t *);
     327extern as_area_info_t *as_get_area_info(as_t *, size_t *);
    328328extern void as_print(as_t *);
    329329
  • kernel/generic/include/mm/slab.h

    r88e43bc r436a0a5  
    146146extern void free(void *);
    147147
    148 extern void *nfmalloc(size_t)
    149     __attribute__((malloc, returns_nonnull));
    150 
    151148#endif
    152149
  • kernel/generic/include/proc/thread.h

    r88e43bc r436a0a5  
    225225
    226226#ifndef thread_create_arch
    227 extern void thread_create_arch(thread_t *);
     227extern errno_t thread_create_arch(thread_t *, thread_flags_t);
    228228#endif
    229229
Note: See TracChangeset for help on using the changeset viewer.