/*
* This is the control structure for tasks blocked on mutex,
* which resides on the blocked task's kernel stack:
*/
struct mutex_waiter {
struct list_head list;
struct task_struct *task;
#ifdef CONFIG_DEBUG_MUTEXES
void *magic;
#endif
};
Linux Kernel 互斥量等待进程描述
最新推荐文章于 2021-05-04 19:19:48 发布
本文介绍了在内核栈上用于任务被互斥锁阻塞时的控制结构——mutex_waiter。该结构包含一个链表头,指向被阻塞的任务结构体指针及调试相关的magic字段。
1657

被折叠的 条评论
为什么被折叠?



