Struct ibverbs::ffi::ibv_context_ops
[−]
[src]
#[repr(C)]pub struct ibv_context_ops { pub query_device: Option<unsafe extern "C" fn(_: *mut ibv_context, _: *mut ibv_device_attr) -> c_int>, pub query_port: Option<unsafe extern "C" fn(_: *mut ibv_context, _: u8, _: *mut ibv_port_attr) -> c_int>, pub alloc_pd: Option<unsafe extern "C" fn(_: *mut ibv_context) -> *mut ibv_pd>, pub dealloc_pd: Option<unsafe extern "C" fn(_: *mut ibv_pd) -> c_int>, pub reg_mr: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut c_void, _: usize, _: c_int) -> *mut ibv_mr>, pub rereg_mr: Option<unsafe extern "C" fn(_: *mut ibv_mr, _: c_int, _: *mut ibv_pd, _: *mut c_void, _: usize, _: c_int) -> c_int>, pub dereg_mr: Option<unsafe extern "C" fn(_: *mut ibv_mr) -> c_int>, pub alloc_mw: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: ibv_mw_type) -> *mut ibv_mw>, pub bind_mw: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_mw, _: *mut ibv_mw_bind) -> c_int>, pub dealloc_mw: Option<unsafe extern "C" fn(_: *mut ibv_mw) -> c_int>, pub create_cq: Option<unsafe extern "C" fn(_: *mut ibv_context, _: c_int, _: *mut ibv_comp_channel, _: c_int) -> *mut ibv_cq>, pub poll_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int, _: *mut ibv_wc) -> c_int>, pub req_notify_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int) -> c_int>, pub cq_event: Option<unsafe extern "C" fn(_: *mut ibv_cq)>, pub resize_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int) -> c_int>, pub destroy_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq) -> c_int>, pub create_srq: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_srq_init_attr) -> *mut ibv_srq>, pub modify_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_srq_attr, _: c_int) -> c_int>, pub query_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_srq_attr) -> c_int>, pub destroy_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq) -> c_int>, pub post_srq_recv: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_recv_wr, _: *mut *mut ibv_recv_wr) -> c_int>, pub create_qp: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_qp_init_attr) -> *mut ibv_qp>, pub query_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_qp_attr, _: c_int, _: *mut ibv_qp_init_attr) -> c_int>, pub modify_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_qp_attr, _: c_int) -> c_int>, pub destroy_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp) -> c_int>, pub post_send: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_send_wr, _: *mut *mut ibv_send_wr) -> c_int>, pub post_recv: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_recv_wr, _: *mut *mut ibv_recv_wr) -> c_int>, pub create_ah: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_ah_attr) -> *mut ibv_ah>, pub destroy_ah: Option<unsafe extern "C" fn(_: *mut ibv_ah) -> c_int>, pub attach_mcast: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *const ibv_gid, _: u16) -> c_int>, pub detach_mcast: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *const ibv_gid, _: u16) -> c_int>, pub async_event: Option<unsafe extern "C" fn(_: *mut ibv_async_event)>, }
Fields
query_device: Option<unsafe extern "C" fn(_: *mut ibv_context, _: *mut ibv_device_attr) -> c_int>
query_port: Option<unsafe extern "C" fn(_: *mut ibv_context, _: u8, _: *mut ibv_port_attr) -> c_int>
alloc_pd: Option<unsafe extern "C" fn(_: *mut ibv_context) -> *mut ibv_pd>
dealloc_pd: Option<unsafe extern "C" fn(_: *mut ibv_pd) -> c_int>
reg_mr: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut c_void, _: usize, _: c_int) -> *mut ibv_mr>
rereg_mr: Option<unsafe extern "C" fn(_: *mut ibv_mr, _: c_int, _: *mut ibv_pd, _: *mut c_void, _: usize, _: c_int) -> c_int>
dereg_mr: Option<unsafe extern "C" fn(_: *mut ibv_mr) -> c_int>
alloc_mw: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: ibv_mw_type) -> *mut ibv_mw>
bind_mw: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_mw, _: *mut ibv_mw_bind) -> c_int>
dealloc_mw: Option<unsafe extern "C" fn(_: *mut ibv_mw) -> c_int>
create_cq: Option<unsafe extern "C" fn(_: *mut ibv_context, _: c_int, _: *mut ibv_comp_channel, _: c_int) -> *mut ibv_cq>
poll_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int, _: *mut ibv_wc) -> c_int>
req_notify_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int) -> c_int>
cq_event: Option<unsafe extern "C" fn(_: *mut ibv_cq)>
resize_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq, _: c_int) -> c_int>
destroy_cq: Option<unsafe extern "C" fn(_: *mut ibv_cq) -> c_int>
create_srq: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_srq_init_attr) -> *mut ibv_srq>
modify_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_srq_attr, _: c_int) -> c_int>
query_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_srq_attr) -> c_int>
destroy_srq: Option<unsafe extern "C" fn(_: *mut ibv_srq) -> c_int>
post_srq_recv: Option<unsafe extern "C" fn(_: *mut ibv_srq, _: *mut ibv_recv_wr, _: *mut *mut ibv_recv_wr) -> c_int>
create_qp: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_qp_init_attr) -> *mut ibv_qp>
query_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_qp_attr, _: c_int, _: *mut ibv_qp_init_attr) -> c_int>
modify_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_qp_attr, _: c_int) -> c_int>
destroy_qp: Option<unsafe extern "C" fn(_: *mut ibv_qp) -> c_int>
post_send: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_send_wr, _: *mut *mut ibv_send_wr) -> c_int>
post_recv: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *mut ibv_recv_wr, _: *mut *mut ibv_recv_wr) -> c_int>
create_ah: Option<unsafe extern "C" fn(_: *mut ibv_pd, _: *mut ibv_ah_attr) -> *mut ibv_ah>
destroy_ah: Option<unsafe extern "C" fn(_: *mut ibv_ah) -> c_int>
attach_mcast: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *const ibv_gid, _: u16) -> c_int>
detach_mcast: Option<unsafe extern "C" fn(_: *mut ibv_qp, _: *const ibv_gid, _: u16) -> c_int>
async_event: Option<unsafe extern "C" fn(_: *mut ibv_async_event)>
Trait Implementations
impl Debug for ibv_context_ops
[src]
impl Copy for ibv_context_ops
[src]
impl Clone for ibv_context_ops
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more