linux内核中的上下文是否是原子的?

时间:2013-12-04 11:14:26

标签: linux-kernel kernel spinlock

spin_lock_irqsave(...);

spin_unlock(...);
/* context */
spin_lock(...);

spin_unlock_irqrestore(...);

上面示例中提到的上下文是原子的吗?在这里,我们只是禁用中断,而不是先占先机。

0 个答案:

没有答案