+ memcpy(ctx->reg->mr->sig_attrs, sig_attrs, sizeof(struct ib_sig_attrs));Why do we need to do a struct copy here instead of setting up a pointer?Yea, can't we use the mr->sig_attrs directly?No, the MR is internal to RW API and the sig_attrs comes from isert. I don't want to loose the pointer I've allocated. it will cause a leak.
Yes, that makes sense Max.