Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
uverbs.h File Reference
#include <linux/kref.h>
#include <linux/idr.h>
#include <linux/mutex.h>
#include <linux/completion.h>
#include <linux/cdev.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_umem.h>
#include <rdma/ib_user_verbs.h>

Go to the source code of this file.

Data Structures

struct  ib_uverbs_device
 
struct  ib_uverbs_event_file
 
struct  ib_uverbs_file
 
struct  ib_uverbs_event
 
struct  ib_uverbs_mcast_entry
 
struct  ib_uevent_object
 
struct  ib_uxrcd_object
 
struct  ib_usrq_object
 
struct  ib_uqp_object
 
struct  ib_ucq_object
 

Macros

#define IB_UVERBS_DECLARE_CMD(name)
 

Functions

void idr_remove_uobj (struct idr *idp, struct ib_uobject *uobj)
 
struct fileib_uverbs_alloc_event_file (struct ib_uverbs_file *uverbs_file, int is_async)
 
struct ib_uverbs_event_fileib_uverbs_lookup_comp_file (int fd)
 
void ib_uverbs_release_ucq (struct ib_uverbs_file *file, struct ib_uverbs_event_file *ev_file, struct ib_ucq_object *uobj)
 
void ib_uverbs_release_uevent (struct ib_uverbs_file *file, struct ib_uevent_object *uobj)
 
void ib_uverbs_comp_handler (struct ib_cq *cq, void *cq_context)
 
void ib_uverbs_cq_event_handler (struct ib_event *event, void *context_ptr)
 
void ib_uverbs_qp_event_handler (struct ib_event *event, void *context_ptr)
 
void ib_uverbs_srq_event_handler (struct ib_event *event, void *context_ptr)
 
void ib_uverbs_event_handler (struct ib_event_handler *handler, struct ib_event *event)
 
void ib_uverbs_dealloc_xrcd (struct ib_uverbs_device *dev, struct ib_xrcd *xrcd)
 
 IB_UVERBS_DECLARE_CMD (get_context)
 
 IB_UVERBS_DECLARE_CMD (query_device)
 
 IB_UVERBS_DECLARE_CMD (query_port)
 
 IB_UVERBS_DECLARE_CMD (alloc_pd)
 
 IB_UVERBS_DECLARE_CMD (dealloc_pd)
 
 IB_UVERBS_DECLARE_CMD (reg_mr)
 
 IB_UVERBS_DECLARE_CMD (dereg_mr)
 
 IB_UVERBS_DECLARE_CMD (create_comp_channel)
 
 IB_UVERBS_DECLARE_CMD (create_cq)
 
 IB_UVERBS_DECLARE_CMD (resize_cq)
 
 IB_UVERBS_DECLARE_CMD (poll_cq)
 
 IB_UVERBS_DECLARE_CMD (req_notify_cq)
 
 IB_UVERBS_DECLARE_CMD (destroy_cq)
 
 IB_UVERBS_DECLARE_CMD (create_qp)
 
 IB_UVERBS_DECLARE_CMD (open_qp)
 
 IB_UVERBS_DECLARE_CMD (query_qp)
 
 IB_UVERBS_DECLARE_CMD (modify_qp)
 
 IB_UVERBS_DECLARE_CMD (destroy_qp)
 
 IB_UVERBS_DECLARE_CMD (post_send)
 
 IB_UVERBS_DECLARE_CMD (post_recv)
 
 IB_UVERBS_DECLARE_CMD (post_srq_recv)
 
 IB_UVERBS_DECLARE_CMD (create_ah)
 
 IB_UVERBS_DECLARE_CMD (destroy_ah)
 
 IB_UVERBS_DECLARE_CMD (attach_mcast)
 
 IB_UVERBS_DECLARE_CMD (detach_mcast)
 
 IB_UVERBS_DECLARE_CMD (create_srq)
 
 IB_UVERBS_DECLARE_CMD (modify_srq)
 
 IB_UVERBS_DECLARE_CMD (query_srq)
 
 IB_UVERBS_DECLARE_CMD (destroy_srq)
 
 IB_UVERBS_DECLARE_CMD (create_xsrq)
 
 IB_UVERBS_DECLARE_CMD (open_xrcd)
 
 IB_UVERBS_DECLARE_CMD (close_xrcd)
 

Variables

spinlock_t ib_uverbs_idr_lock
 
struct idr ib_uverbs_pd_idr
 
struct idr ib_uverbs_mr_idr
 
struct idr ib_uverbs_mw_idr
 
struct idr ib_uverbs_ah_idr
 
struct idr ib_uverbs_cq_idr
 
struct idr ib_uverbs_qp_idr
 
struct idr ib_uverbs_srq_idr
 
struct idr ib_uverbs_xrcd_idr
 

Macro Definition Documentation

#define IB_UVERBS_DECLARE_CMD (   name)
Value:
ssize_t ib_uverbs_##name(struct ib_uverbs_file *file, \
const char __user *buf, int in_len, \
int out_len)

Definition at line 179 of file uverbs.h.

Function Documentation

struct file* ib_uverbs_alloc_event_file ( struct ib_uverbs_file uverbs_file,
int  is_async 
)
read

Definition at line 509 of file uverbs_main.c.

void ib_uverbs_comp_handler ( struct ib_cq cq,
void cq_context 
)

Definition at line 397 of file uverbs_main.c.

void ib_uverbs_cq_event_handler ( struct ib_event event,
void context_ptr 
)

Definition at line 465 of file uverbs_main.c.

void ib_uverbs_dealloc_xrcd ( struct ib_uverbs_device dev,
struct ib_xrcd xrcd 
)

Definition at line 898 of file uverbs_cmd.c.

IB_UVERBS_DECLARE_CMD ( get_context  )
IB_UVERBS_DECLARE_CMD ( query_device  )
IB_UVERBS_DECLARE_CMD ( query_port  )
IB_UVERBS_DECLARE_CMD ( alloc_pd  )
IB_UVERBS_DECLARE_CMD ( dealloc_pd  )
IB_UVERBS_DECLARE_CMD ( reg_mr  )
IB_UVERBS_DECLARE_CMD ( dereg_mr  )
IB_UVERBS_DECLARE_CMD ( create_comp_channel  )
IB_UVERBS_DECLARE_CMD ( create_cq  )
IB_UVERBS_DECLARE_CMD ( resize_cq  )
IB_UVERBS_DECLARE_CMD ( poll_cq  )
IB_UVERBS_DECLARE_CMD ( req_notify_cq  )
IB_UVERBS_DECLARE_CMD ( destroy_cq  )
IB_UVERBS_DECLARE_CMD ( create_qp  )
IB_UVERBS_DECLARE_CMD ( open_qp  )
IB_UVERBS_DECLARE_CMD ( query_qp  )
IB_UVERBS_DECLARE_CMD ( modify_qp  )
IB_UVERBS_DECLARE_CMD ( destroy_qp  )
IB_UVERBS_DECLARE_CMD ( post_send  )
IB_UVERBS_DECLARE_CMD ( post_recv  )
IB_UVERBS_DECLARE_CMD ( post_srq_recv  )
IB_UVERBS_DECLARE_CMD ( create_ah  )
IB_UVERBS_DECLARE_CMD ( destroy_ah  )
IB_UVERBS_DECLARE_CMD ( attach_mcast  )
IB_UVERBS_DECLARE_CMD ( detach_mcast  )
IB_UVERBS_DECLARE_CMD ( create_srq  )
IB_UVERBS_DECLARE_CMD ( modify_srq  )
IB_UVERBS_DECLARE_CMD ( query_srq  )
IB_UVERBS_DECLARE_CMD ( destroy_srq  )
IB_UVERBS_DECLARE_CMD ( create_xsrq  )
IB_UVERBS_DECLARE_CMD ( open_xrcd  )
IB_UVERBS_DECLARE_CMD ( close_xrcd  )
void ib_uverbs_event_handler ( struct ib_event_handler handler,
struct ib_event event 
)

Definition at line 499 of file uverbs_main.c.

struct ib_uverbs_event_file* ib_uverbs_lookup_comp_file ( int  fd)
read

Definition at line 541 of file uverbs_main.c.

void ib_uverbs_qp_event_handler ( struct ib_event event,
void context_ptr 
)

Definition at line 475 of file uverbs_main.c.

void ib_uverbs_release_ucq ( struct ib_uverbs_file file,
struct ib_uverbs_event_file ev_file,
struct ib_ucq_object uobj 
)

Definition at line 136 of file uverbs_main.c.

void ib_uverbs_release_uevent ( struct ib_uverbs_file file,
struct ib_uevent_object uobj 
)

Definition at line 161 of file uverbs_main.c.

void ib_uverbs_srq_event_handler ( struct ib_event event,
void context_ptr 
)

Definition at line 487 of file uverbs_main.c.

void idr_remove_uobj ( struct idr idp,
struct ib_uobject uobj 
)

Definition at line 141 of file uverbs_cmd.c.

Variable Documentation

struct idr ib_uverbs_ah_idr
struct idr ib_uverbs_cq_idr
spinlock_t ib_uverbs_idr_lock
struct idr ib_uverbs_mr_idr
struct idr ib_uverbs_mw_idr
struct idr ib_uverbs_pd_idr
struct idr ib_uverbs_qp_idr
struct idr ib_uverbs_srq_idr
struct idr ib_uverbs_xrcd_idr