[ofa-general] RFC: SRC API

Gleb Natapov glebn at voltaire.com
Mon Jul 30 02:06:00 PDT 2007


On Mon, Jul 30, 2007 at 12:01:40PM +0300, Michael S. Tsirkin wrote:
> 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.
> 
OK. I am more interested in how SRC is connected to a QP in different processes.
How a process will be able to do sends to different processes through one QP, etc...

--
			Gleb.



More information about the general mailing list