Annotation of Gnu-Mach/ddb/db_task_thread.h, revision 1.1.1.4

1.1.1.2   root        1: /*
1.1       root        2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990 Carnegie Mellon University
                      4:  * All Rights Reserved.
1.1.1.2   root        5:  *
1.1       root        6:  * Permission to use, copy, modify and distribute this software and its
                      7:  * documentation is hereby granted, provided that both the copyright
                      8:  * notice and this permission notice appear in all copies of the
                      9:  * software, derivative works or modified versions, and any portions
                     10:  * thereof, and that both notices appear in supporting documentation.
1.1.1.2   root       11:  *
1.1       root       12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1.1.1.2   root       15:  *
1.1       root       16:  * Carnegie Mellon requests users of this software to return to
1.1.1.2   root       17:  *
1.1       root       18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
1.1.1.2   root       22:  *
1.1       root       23:  * any improvements or extensions that they make and grant Carnegie Mellon
                     24:  * the rights to redistribute these changes.
                     25:  */
                     26: 
                     27: #ifndef _DDB_DB_TASK_THREAD_H_
                     28: #define _DDB_DB_TASK_THREAD_H_
                     29: 
1.1.1.4 ! root       30: #include <ddb/db_variables.h>
        !            31: 
1.1       root       32: #include <kern/task.h>
                     33: #include <kern/thread.h>
                     34: 
                     35: #define db_current_task()                                              \
                     36:                ((current_thread())? current_thread()->task: TASK_NULL)
                     37: #define db_target_space(thread, user_space)                            \
                     38:                ((!(user_space))? TASK_NULL:                            \
                     39:                (thread)? (thread)->task: db_current_task())
                     40: #define db_is_current_task(task)                                       \
                     41:                ((task) == TASK_NULL || (task) == db_current_task())
                     42: 
                     43: extern task_t  db_default_task;                /* default target task */
                     44: extern thread_t        db_default_thread;              /* default target thread */
                     45: 
1.1.1.4 ! root       46: extern int             db_lookup_task(const task_t);
        !            47: extern int             db_lookup_thread(const thread_t);
        !            48: extern int             db_lookup_task_thread(const task_t, const thread_t);
        !            49: extern boolean_t       db_check_thread_address_valid(const thread_t);
1.1.1.3   root       50: extern boolean_t       db_get_next_thread(thread_t *, int);
                     51: extern void            db_init_default_thread(void);
1.1       root       52: 
1.1.1.4 ! root       53: extern void
        !            54: db_set_default_thread(
        !            55:        struct db_variable      *vp,
        !            56:        db_expr_t               *valuep,
        !            57:        int                     flag,
        !            58:        db_var_aux_param_t      ap);
        !            59: 
        !            60: extern void
        !            61: db_get_task_thread(
        !            62:        struct db_variable      *vp,
        !            63:        db_expr_t               *valuep,
        !            64:        int                     flag,
        !            65:        db_var_aux_param_t      ap);
        !            66: 
1.1.1.2   root       67: #endif  /* _DDB_DB_TASK_THREAD_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.