const struct sched_class *sched_class; //调度实体 struct sched_entity se; struct sched_rt_entity rt; struct sched_dl_entity dl; //调度策略 unsigned int policy; //可以使用哪些CPU int nr_cpus_allowed; cpumask_t cpus_allowed; struct sched_info sched_info; 1.7信号处理 信号处理相关的数据结构...
int rt_priority; //调度器类 const struct sched_class *sched_class; //调度实体 struct sched_entity se; struct sched_rt_entity rt; struct sched_dl_entity dl; //调度策略 unsigned int policy; //可以使用哪些CPU int nr_cpus_allowed; cpumask_t cpus_allowed; struct sched_info sched_info; ...
#if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) struct sched_info sched_info; #endif (10)、用于构建进程链表 [cpp] view plain copy struct list_head tasks; (11)、to limit pushing to one attempt [cpp] view plain copy #ifdef CONFIG_SMP struct plist_node pushable_...
int on_rq;int prio;int static_prio;int normal_prio;unsigned int rt_priority;conststruct sched_class*sched_class;struct sched_entity se;struct sched_rt_entity rt;#ifdefCONFIG_CGROUP_SCHEDstruct task_group*sched_task_group;#endif struct sched_dl_entity dl;#ifdefCONFIG_UCLAMP_TASK/* Clamp valu...
struct sched_info sched_info; #endif (10)、用于构建进程链表 struct list_head tasks; (11)、to limit pushing to one attempt #ifdef CONFIG_SMP struct plist_node pushable_tasks; #endif (12)、防止内核堆栈溢出 #ifdef CONFIG_CC_STACKPROTECTOR ...
struct sched_entity se; unsigned short ioprio; unsigned long policy; cpumask_t cpus_allowed; unsigned int time_slice; #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) struct sched_info sched_info; #endif struct list_head tasks; ...
struct sched_info sched_info; #endif (10)、用于构建进程链表 struct list_head tasks; (11)、to limit pushing to one attempt #ifdef CONFIG_SMP struct plist_node pushable_tasks; #endif (12)、防止内核堆栈溢出 #ifdef CONFIG_CC_STACKPROTECTOR ...
Linux内核通过一个被称为进程描述符的task_struct结构体来管理进程,这个结构体包含了一个进程所需的所有信息。它定义在linux-2.6.38.8/include/linux/sched.h文件中。 本文将尽力就task_struct结构体所有成员的用法进行简要说明。 1、进程状态 volatilelongstate; ...
Linux内核通过一个被称为进程描述符的task_struct结构体来管理进程,这个结构体包含了一个进程所需的所有信息。它定义在include/linux/sched.h文件中。 谈到task_struct结构体,可以说她是linux内核源码中最复杂的一个结构体了,成员之多,占用内存之大。
int normal_prio;unsigned int rt_priority;//调度器类conststruct sched_class*sched_class;//调度实体struct sched_entity se;struct sched_rt_entity rt;struct sched_dl_entity dl;//调度策略unsigned int policy;//可以使用哪些CPUint nr_cpus_allowed;cpumask_t cpus_allowed;struct sched_info sched_info...