Changeset cd671c3 in mainline for kernel/generic/include/ipc


Ignore:
Timestamp:
2012-09-05T22:36:48Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1d5ef8
Parents:
239acce
Message:

Reference count call_t structures.
Add ipc_call_hold() and ipc_call_release().
Hold the forgotten call during the request_forget() callback.

Location:
kernel/generic/include/ipc
Files:
2 edited

Legend:

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

    r239acce rcd671c3  
    116116        link_t ta_link;
    117117
     118        atomic_t refcnt;
     119
    118120        /** Answerbox link. */
    119121        link_t ab_link;
     
    166168extern call_t *ipc_call_alloc(unsigned int);
    167169extern void ipc_call_free(call_t *);
     170extern void ipc_call_hold(call_t *);
     171extern void ipc_call_release(call_t *);
    168172
    169173extern int ipc_call(phone_t *, call_t *);
  • kernel/generic/include/ipc/sysipc_ops.h

    r239acce rcd671c3  
    5555         * Context:             caller
    5656         * Caller alive:        guaranteed
    57          * Races with:          request_process(), answer_cleanup()
     57         * Races with:          request_process(), answer_cleanup(),
     58         *                      _ipc_answer_free_call()
    5859         * Invoked on:          all forgotten calls
    5960         */     
Note: See TracChangeset for help on using the changeset viewer.