Linux Kernel API (2.6)
来源:互联网 发布:hadoop2.6.5 ubuntu 编辑:程序博客网 时间:2024/05/21 10:57
For UP system
#protect share data
spin_lock/spin_unlock: protect the data during process context(and only at process context), and make sure your code bewteen lock/unlock is fast enough.There may deadlock if the same spin_lock is called at interrupt context.
spin_lock_irq/spin_unlock_irq: call it during interrupt context, make sure the irq is on before calling this function, it will disable irq before accessing share data
spin_lock_irqsave/irqrestore: use at interrupt context, and will save/restort irq registers
The code between spin_lock**/spin_unlock** must not sleep.
The spin_lock** API is defined at include/linux/spinlock_api_up.h for UP architecture.
linux/kernel/spinlock.c is only for SMP.
mutex_lock/mutex_unlock: the similar with down/up, but more efficient
mutex_lock_interruptible: the simlilar with down_interruptiable, can be interruptiable by signal.(like CTRL-C)
the code beween mutex_lock and mutex_unlock can go to sleep
- Linux Kernel API (2.6)
- The Linux Kernel API
- 查阅linux kernel api
- The Linux Kernel API
- The Linux Kernel API
- The Linux Kernel API
- The Linux Kernel API
- The Linux API / Kernel API
- 原来还有linux kernel api
- LINUX GPIO Kernel/User API
- Linux Kernel API man (ubuntu)
- linux 用户空间调用kernel 的api
- linux kernel中的一些utility API---(1)
- Linux Kernel devm_* API源码分析
- Linux Kernel Namespace实现: namespace API介绍
- Linux 内核API文档(The Linux Kernel API)
- Linux-USB Gadget : Part 2: USB Gadget API for Linux (From Linux kernel 2.6.25.10)
- Linux kernel 2.6.24.3
- Java native2ascii 简单转码
- .net 下用API的参考站点
- Android文字跑马灯控件(文本自动滚动控件)
- RVDS4.0导入ADS工程
- CAP & MAP & VLR & HLR & GMSC & DP & gsmSSF简介
- Linux Kernel API (2.6)
- 动态的获取文本框输入的字符
- 几个笑话
- Windows CE 6.0内核的定制
- Ubuntu Linux系统环境变量配置文件介绍
- WINDOWS下通过DRIVER方式直接读取内存条的SPD的实用程序
- 窝窝课的架构技术之框架篇
- 【资料整理】Spring.Net框架学习(2)
- 总结DOS命令和电脑安全相关