我是linux内核的新手.我的问题是关于task_struct.我知道每个task_struct都通过指向父进程的指针来引用它的父进程task_struct.
在查看task_struct定义中的sched.h后,我注意到以下内容:
struct task_struct __rcu *real_parent; /* real parent process */
Run Code Online (Sandbox Code Playgroud)
我发现它引用了compiler.h.我猜"__rcu"代表"读取副本更新"
有人可以澄清语法吗?
系统调用使用软件中断(中断向量 128)实现。在 roberts 的情书“Linux Kernel Development”中写道,中断句柄发生在中断上下文中。它还写到系统调用在进程上下文中运行,但系统调用句柄实际上是一个“中断句柄”,那么为什么它在不同的上下文中呢?