Changeset 80bcaed in mainline for kernel/generic/include/proc/task.h


Ignore:
Timestamp:
2007-02-03T13:22:24Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f619ec11
Parents:
fa8e7d2
Message:

Merge as_t structure into one and leave the differring parts in as_genarch_t.

Indentation and formatting changes in header files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/task.h

    rfa8e7d2 r80bcaed  
    5959        /** Task lock.
    6060         *
    61          * Must be acquired before threads_lock and thread lock of any of its threads.
     61         * Must be acquired before threads_lock and thread lock of any of its
     62         * threads.
    6263         */
    6364        SPINLOCK_DECLARE(lock);
    6465       
    6566        char *name;
    66         struct thread *main_thread;     /**< Pointer to the main thread. */
    67         link_t th_head;         /**< List of threads contained in this task. */
    68         as_t *as;               /**< Address space. */
    69         task_id_t taskid;       /**< Unique identity of task */
    70         context_id_t context;   /**< Task security context */
     67        /** Pointer to the main thread. */
     68        struct thread *main_thread;
     69        /** List of threads contained in this task. */
     70        link_t th_head;
     71        /** Address space. */
     72        as_t *as;
     73        /** Unique identity of task. */
     74        task_id_t taskid;
     75        /** Task security context. */
     76        context_id_t context;   
    7177
    7278        /** If this is true, new threads can become part of the task. */
    7379        bool accept_new_threads;
     80        /** Number of references (i.e. threads). */
     81        count_t refcount;       
    7482
    75         count_t refcount;       /**< Number of references (i.e. threads). */
    76 
    77         cap_t capabilities;     /**< Task capabilities. */
     83        /** Task capabilities. */
     84        cap_t capabilities;     
    7885
    7986        /* IPC stuff */
    8087        answerbox_t answerbox;  /**< Communication endpoint */
    8188        phone_t phones[IPC_MAX_PHONES];
    82         atomic_t active_calls;  /**< Active asynchronous messages.
    83                                  *   It is used for limiting uspace to
    84                                  *   certain extent. */
     89        /**
     90         * Active asynchronous messages. It is used for limiting uspace to
     91         * certain extent.
     92         */
     93        atomic_t active_calls; 
    8594       
    86         task_arch_t arch;       /**< Architecture specific task data. */
     95        /** Architecture specific task data. */
     96        task_arch_t arch;       
    8797       
    8898        /**
     
    91101         */
    92102        mutex_t futexes_lock;
    93         btree_t futexes;        /**< B+tree of futexes referenced by this task. */
     103        /** B+tree of futexes referenced by this task. */
     104        btree_t futexes;       
    94105       
    95         uint64_t cycles;        /**< Accumulated accounting. */
     106        /** Accumulated accounting. */
     107        uint64_t cycles;
    96108} task_t;
    97109
Note: See TracChangeset for help on using the changeset viewer.