Some code examples:
        /* create a domain and share it: */

        struct ibv_src_domain * d = ibv_get_new_src_domain(ctx);
        int fd = open(path, O_CREAT | O_RDWR, mode);
        ibv_share_src_domain(d, fd);

        /* get a reference to a shared domain: */

        int fd = open(path, O_CREAT | O_RDWR, mode);
        struct ibv_src_domain * d = ibv_get_shared_src_domain(ctx, fd);

        /* once done: */
        ibv_put_src_domain(d);

Note: when all users do put, domain is destroyed.

-- 
MST
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to