Function ibverbs::ffi::ibv_create_srq[][src]

pub unsafe extern "C" fn ibv_create_srq(
    pd: *mut ibv_pd,
    srq_init_attr: *mut ibv_srq_init_attr
) -> *mut ibv_srq

ibv_create_srq - Creates a SRQ associated with the specified protection domain. @pd: The protection domain associated with the SRQ. @srq_init_attr: A list of initial attributes required to create the SRQ.

srq_attr->max_wr and srq_attr->max_sge are read the determine the requested size of the SRQ, and set to the actual values allocated on return. If ibv_create_srq() succeeds, then max_wr and max_sge will always be at least as large as the requested values.