Chinaunix首页 | 论坛 | 博客
  • 博客访问: 86804
  • 博文数量: 10
  • 博客积分: 2055
  • 博客等级: 大尉
  • 技术积分: 370
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 16:59
文章分类
文章存档

2011年(1)

2008年(9)

我的朋友

分类: LINUX

2008-04-17 12:32:55

this just quota

1 . vmalloc can't be used in interrupt, also can't be used in lock. please care it.

2 . Not lock-context but interrupt-context which includes soft-interrupt and hard-interrupt. It is advised that not use them in atomic-context. In another word, it can only be used in process-context. As write_lock_bh disables the soft-interrupt, itself become in soft-interrupt context.

To be your known:

atomic-context = interrupt + spinlock-context.

interrupt = soft-interrupt + hard-interrupt.

spinlock-context = spin_lock + rwlock.

process becomes in above context when it has acquired the corresponding lock or disabled corresponding interrupt. Semaphore doesn't change context.

阅读(623) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~