2009년 11월 14일 토요일

task_struct

커널 버전 2.6.20.18

sched.h

 

 801 struct task_struct {
 802     volatile long state;    /* -1 unrunnable, 0 runnable, >0 stopped */

 

 816     int prio, static_prio, normal_prio;  // 우선순위
 831     unsigned int time_slice, first_time_slice;  //


 887     unsigned long nvcsw, nivcsw; /* context switch counts */

 888     struct timespec start_time; // 프로세스 생성시간?

 896 /* process credentials */
 897     uid_t uid,euid,suid,fsuid;
 898     gid_t gid,egid,sgid,fsgid;

 918     char comm[TASK_COMM_LEN]; /* executable name excluding path
 919                      - access with [gs]et_task_comm (which lock
 920                        it with task_lock())
 921                      - initialized normally by flush_old_exec */

댓글 없음:

댓글 쓰기