get_user_pages()

Submitted by Anonymous
on February 22, 2008 - 6:32am

Dear all,

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.

Thanks
Ivan

Haha, stupid question -

Anonymous (not verified)
on
February 22, 2008 - 8:14am

Haha,
stupid question - excuse me for asking =)
when executing in !syscall context there is no current pointer and no userspace at all.

Ivan

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.