Changeset eb5560a in mainline


Ignore:
Timestamp:
2012-08-26T22:46:50Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e5a4250
Parents:
53af6e8c
Message:

Add comments explaining individual sysipc_ops_t callbacks.

File:
1 edited

Legend:

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

    r53af6e8c reb5560a  
    3939
    4040typedef struct {
     41        /**
     42         * This callback is called from request_preprocess().
     43         *
     44         * Context:             caller
     45         * Caller alive:        guaranteed
     46         * Races with:          N/A
     47         * Invoked on:          all calls
     48         */
    4149        int (* request_preprocess)(call_t *, phone_t *);
     50
     51        /**
     52         * This callback is called when the IPC cleanup code wins the race to
     53         * forget the call.
     54         *
     55         * Context:             caller
     56         * Caller alive:        guaranteed
     57         * Races with:          request_process(), answer_cleanup()
     58         * Invoked on:          all forgotten calls
     59         */     
    4260        void (* request_forget)(call_t *);
     61
     62        /**
     63         * This callback is called from process_request().
     64         *
     65         * Context:             callee
     66         * Caller alive:        no guarantee
     67         * Races with:          request_forget()
     68         * Invoked on:          all calls
     69         */     
    4370        int (* request_process)(call_t *, answerbox_t *);
     71
     72        /**
     73         * This callback is called when answer_preprocess() loses the race to
     74         * answer the call.
     75         *
     76         * Context:             callee
     77         * Caller alive:        no guarantee
     78         * Races with:          request_forget()
     79         * Invoked on:          all forgotten calls
     80         */
    4481        void (* answer_cleanup)(call_t *, ipc_data_t *);
     82
     83        /**
     84         * This callback is called when answer_preprocess() wins the race to
     85         * answer the call.
     86         *
     87         * Context:             callee
     88         * Caller alive:        guaranteed
     89         * Races with:          N/A
     90         * Invoked on:          all answered calls
     91         */
    4592        int (* answer_preprocess)(call_t *, ipc_data_t *);
     93
     94        /**
     95         * This callback is called from process_answer().
     96         *
     97         * Context:             caller
     98         * Caller alive:        guaranteed
     99         * Races with:          N/A
     100         * Invoked on:          all answered calls
     101         */
    46102        int (* answer_process)(call_t *);
    47103} sysipc_ops_t;
Note: See TracChangeset for help on using the changeset viewer.