Chinaunix首页 | 论坛 | 博客
  • 博客访问: 104710
  • 博文数量: 76
  • 博客积分: 50
  • 博客等级: 民兵
  • 技术积分: 400
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-18 21:41
文章分类

全部博文(76)

文章存档

2011年(76)

我的朋友

分类:

2011-08-24 17:23:58

原文地址:get_user_pages注意问题 作者:liujunwei1234

    I'm trying to implement simple network protocol. I'm mapping user pages with get_user_pages() and then accessing them with kmap(),kunmap(). Touching user pages works fine in syscall context, but fails with nasty kboom in a softirq context. I also tried kmap_atomic()/kunmap_atomic(). Am I doing something wrong, or I'm not allowed to access user structures at all from irq/softirq context. ( copy_to_user() also is limited to syscall context). Any help will be appreciated.

stupid question - excuse me for asking =)
when executing in !syscall context there is no current pointer and no userspace at
阅读(857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~