Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2015182
  • 博文数量: 610
  • 博客积分: 11499
  • 博客等级: 上将
  • 技术积分: 5511
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-12 19:27
文章分类

全部博文(610)

文章存档

2016年(5)

2015年(18)

2014年(12)

2013年(16)

2012年(297)

2011年(45)

2010年(37)

2009年(79)

2008年(101)

分类: LINUX

2011-06-21 23:35:38

(2011-03-02 09:12)

    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

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