Структура данных характеризует сведения об отлаживаемом процессе
#include <sys/debug.h>typedef struct _debug_process_info {pid_t pid;pid_t parent;_Uint32t flags;_Uint32t umask;pid_t child;pid_t sibling;pid_t pgrp;pid_t sid;_Uint64t base_address;_Uint64t initial_stack;uid_t uid;gid_t gid;uid_t euid;gid_t egid;uid_t suid;gid_t sgid;sigset_t sig_ignore;sigset_t sig_queue;sigset_t sig_pending;_Uint32t num_chancons;_Uint32t num_fdcons;_Uint32t num_threads;_Uint32t num_timers;_Uint64t start_time; /* Start time in nsec */_Uint64t utime; /* User running time in nsec */_Uint64t stime; /* System running time in nsec */_Uint64t cutime; /* terminated children user time in nsec */_Uint64t cstime; /* terminated children user time in nsec */_Uint8t priority; /* process base priority */_Uint8t reserved2[7];_Uint8t extsched[8];_Uint64t pls; /* Address of process local storage */_Uint64t sigstub; /* Address of process signal trampoline */_Uint64t canstub; /* Address of process thread cancellation trampoline */_Uint64t private_mem; /* Amount of MAP_PRIVATE memory */_Uint64t reserved[9];} debug_process_t;typedef debug_process_t procfs_info;
Структура procfs_info
характеризует сведения об отлаживаемом процессе. Поля структуры включают:
ЗОСРВ «Нейтрино»
devctl(), DCMD_PROC_INFO, mmap()
Предыдущий раздел: перейти