Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qib_mmap.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <asm/pgtable.h>
#include "qib_verbs.h"

Go to the source code of this file.


void qib_release_mmap_info (struct kref *ref)
int qib_mmap (struct ib_ucontext *context, struct vm_area_struct *vma)
struct qib_mmap_infoqib_create_mmap_info (struct qib_ibdev *dev, u32 size, struct ib_ucontext *context, void *obj)
void qib_update_mmap_info (struct qib_ibdev *dev, struct qib_mmap_info *ip, u32 size, void *obj)

Function Documentation

struct qib_mmap_info* qib_create_mmap_info ( struct qib_ibdev dev,
u32  size,
struct ib_ucontext context,
void obj 

Definition at line 131 of file qib_mmap.c.

int qib_mmap ( struct ib_ucontext context,
struct vm_area_struct vma 

qib_mmap - create a new mmap region : the IB user context of the process making the mmap() call : the VMA to be initialized Return zero if the mmap is OK. Otherwise, return an errno.

Definition at line 89 of file qib_mmap.c.

void qib_release_mmap_info ( struct kref ref)

qib_release_mmap_info - free mmap info structure a pointer to the kref within struct qib_mmap_info

Definition at line 46 of file qib_mmap.c.

void qib_update_mmap_info ( struct qib_ibdev dev,
struct qib_mmap_info ip,
u32  size,
void obj 

Definition at line 160 of file qib_mmap.c.