[openib-general] Re: registering read-only memory

Roland Dreier roland at topspin.com
Thu May 26 12:09:22 PDT 2005


OK, I think I understand the problem.  The compiler puts a string
defined with "const char *foo" on a read-only page, but in
uverbs_mem.c we always pass write=1 to get_user_pages().  I need to
fix the code so that it only asks for writeable pages if we're
registering with writable permissions.

 - R.



More information about the general mailing list