Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qib_srq.c File Reference
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "qib_verbs.h"

Go to the source code of this file.


int qib_post_srq_receive (struct ib_srq *ibsrq, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr)
struct ib_srqqib_create_srq (struct ib_pd *ibpd, struct ib_srq_init_attr *srq_init_attr, struct ib_udata *udata)
int qib_modify_srq (struct ib_srq *ibsrq, struct ib_srq_attr *attr, enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
int qib_query_srq (struct ib_srq *ibsrq, struct ib_srq_attr *attr)
int qib_destroy_srq (struct ib_srq *ibsrq)

Function Documentation

struct ib_srq* qib_create_srq ( struct ib_pd ibpd,
struct ib_srq_init_attr srq_init_attr,
struct ib_udata udata 

qib_create_srq - create a shared receive queue : the protection domain of the SRQ to create : the attributes of the SRQ : data from libibverbs when creating a user SRQ

Definition at line 101 of file qib_srq.c.

int qib_destroy_srq ( struct ib_srq ibsrq)

qib_destroy_srq - destroy a shared receive queue : the SRQ to destroy

Definition at line 365 of file qib_srq.c.

int qib_modify_srq ( struct ib_srq ibsrq,
struct ib_srq_attr attr,
enum ib_srq_attr_mask  attr_mask,
struct ib_udata udata 

qib_modify_srq - modify a shared receive queue : the SRQ to modify : the new attributes of the SRQ : indicates which attributes to modify : user data for

Definition at line 211 of file qib_srq.c.

int qib_post_srq_receive ( struct ib_srq ibsrq,
struct ib_recv_wr wr,
struct ib_recv_wr **  bad_wr 

qib_post_srq_receive - post a receive on a shared receive queue : the SRQ to post the receive on : the list of work requests to post : A pointer to the first WR to cause a problem is put here

This may be called from interrupt context.

Definition at line 48 of file qib_srq.c.

int qib_query_srq ( struct ib_srq ibsrq,
struct ib_srq_attr attr 

Definition at line 351 of file qib_srq.c.