Linux Kernel调度管理之sched_rt_entity

sched_rt_entity是实时进程用于调度的实体描述:
struct sched_rt_entity {
	struct list_head run_list;
	unsigned long timeout;
	unsigned long watchdog_stamp;
	unsigned int time_slice;
	unsigned short on_rq;
	unsigned short on_list;


	struct sched_rt_entity *back;
#ifdef CONFIG_RT_GROUP_SCHED
	struct sched_rt_entity	*parent;
	/* rq on which this entity is (to be) queued: */
	struct rt_rq		*rt_rq;
	/* rq "owned" by this entity/group: */
	struct rt_rq		*my_q;
#endif
};
实时调度实体也是作为进程描述符下的一个成员存在。

版权声明:本文为sunlei0625原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。