Chinaunix首页 | 论坛 | 博客
  • 博客访问: 51373
  • 博文数量: 75
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-12 12:32
文章分类

全部博文(75)

文章存档

2013年(75)

我的朋友

分类: LINUX

2013-04-12 12:59:56

原文地址: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
阅读(149) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~