IV
8.1.2 原子位操作 ..................................................................................................................................................................................................................... 52
8.2 自旋锁 ....................................................................................................................................................................................................................................... 53
8.2.1 其他针对自旋锁的操作 .............................................................................................................................................................................................. 54
8.2.2 自旋锁和下半部 ............................................................................................................................................................................................................ 54
8.3 读-写自旋锁 ............................................................................................................................................................................................................................ 54
8.4 信号量 ....................................................................................................................................................................................................................................... 55
8.4.1 创建和初始化信号量 ................................................................................................................................................................................................... 56
8.4.2 使用信号量 ..................................................................................................................................................................................................................... 56
8.5 读-写信号量 ............................................................................................................................................................................................................................ 57
8.6 完成变量 ................................................................................................................................................................................................................................... 58
8.7 BKL ............................................................................................................................................................................................................................................... 58
8.8 Seq 锁 ......................................................................................................................................................................................................................................... 59
8.9 禁止抢占 ................................................................................................................................................................................................................................... 59
8.10 屏障 ......................................................................................................................................................................................................................................... 60
9 定时器和时间管理 .................................................................................................................................................................... 62
9.1 内核中的时间概念 ................................................................................................................................................................................................................ 62
9.2 节拍率:Hz ............................................................................................................................................................................................................................. 62
9.3 jiffies ............................................................................................................................................................................................................................................ 63
9.3.1 jiffies 的内部表示 ........................................................................................................................................................................................................... 64
9.3.2 jiffies 的回绕 .................................................................................................................................................................................................................... 64
9.3.3 用户空间和 Hz ............................................................................................................................................................................................................... 65
9.4 硬时钟和定时器 ..................................................................................................................................................................................................................... 65
9.4.1 实时时钟 .......................................................................................................................................................................................................................... 65
9.4.2 系统定时器 ..................................................................................................................................................................................................................... 65
9.5 时钟中断处理程序 ................................................................................................................................................................................................................ 65
9.6 实际时间 ................................................................................................................................................................................................................................... 67
9.7 定时器 ....................................................................................................................................................................................................................................... 68
9.7.1 使用定时器 ..................................................................................................................................................................................................................... 68
9.7.2 定时器竞争条件 ............................................................................................................................................................................................................ 69
9.7.3 实现定时器 ..................................................................................................................................................................................................................... 69
9.8 延迟执行 ................................................................................................................................................................................................................................... 69
9.8.1 忙等待 .............................................................................................................................................................................................................................. 69
9.8.2 短延迟 .............................................................................................................................................................................................................................. 70
10 内存管理 ................................................................................................................................................................................... 72
10.1 页 .............................................................................................................................................................................................................................................. 72
10.2 区 .............................................................................................................................................................................................................................................. 72
10.3 获得页 ..................................................................................................................................................................................................................................... 74
评论0
最新资源