[openib-general] RE: registering read-only memory
Eli Cohen
eli at mellanox.co.il
Tue May 24 23:54:00 PDT 2005
Please try:
const char *foo="Michael Tsirkin";
as opposed to
const char foo[]="Michael Tsirkin";
-----Original Message-----
From: Roland Dreier [mailto:roland at topspin.com]
Sent: Tuesday, May 24, 2005 10:07 PM
To: Michael S. Tsirkin
Cc: openib-general at openib.org; Eli Cohen
Subject: Re: registering read-only memory
> const char foo[]="Michael Tsirkin";
> ibv_reg_mr(ctx->pd, foo, strlen(foo), 0);
This seemed to work fine on my system (I got a non-null ibv_mr back
with valid-looking L_Key/R_Key).
- R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050525/11ba78f8/attachment.html>
More information about the general
mailing list