[ofa-general] RFC: SRC API
    Michael S. Tsirkin 
    mst at dev.mellanox.co.il
       
    Mon Jul 30 02:01:40 PDT 2007
    
    
  
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
    
    
More information about the general
mailing list