Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
iser_memory.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/scatterlist.h>
#include "iscsi_iser.h"

Go to the source code of this file.

Macros

#define ISER_KMALLOC_THRESHOLD   0x20000 /* 128K - kmalloc limit */
 
#define IS_4K_ALIGNED(addr)   ((((unsigned long)addr) & ~MASK_4K) == 0)
 

Functions

void iser_finalize_rdma_unaligned_sg (struct iscsi_iser_task *iser_task, enum iser_data_dir cmd_dir)
 
int iser_dma_map_task_data (struct iscsi_iser_task *iser_task, struct iser_data_buf *data, enum iser_data_dir iser_dir, enum dma_data_direction dma_dir)
 
void iser_dma_unmap_task_data (struct iscsi_iser_task *iser_task)
 
int iser_reg_rdma_mem (struct iscsi_iser_task *iser_task, enum iser_data_dir cmd_dir)
 

Macro Definition Documentation

#define IS_4K_ALIGNED (   addr)    ((((unsigned long)addr) & ~MASK_4K) == 0)

Definition at line 156 of file iser_memory.c.

#define ISER_KMALLOC_THRESHOLD   0x20000 /* 128K - kmalloc limit */

Definition at line 41 of file iser_memory.c.

Function Documentation

int iser_dma_map_task_data ( struct iscsi_iser_task iser_task,
struct iser_data_buf data,
enum iser_data_dir  iser_dir,
enum dma_data_direction  dma_dir 
)

Definition at line 313 of file iser_memory.c.

void iser_dma_unmap_task_data ( struct iscsi_iser_task iser_task)

Definition at line 331 of file iser_memory.c.

void iser_finalize_rdma_unaligned_sg ( struct iscsi_iser_task iser_task,
enum iser_data_dir  cmd_dir 
)

iser_finalize_rdma_unaligned_sg

Definition at line 107 of file iser_memory.c.

int iser_reg_rdma_mem ( struct iscsi_iser_task iser_task,
enum iser_data_dir  cmd_dir 
)

iser_reg_rdma_mem - Registers memory intended for RDMA, obtaining rkey and va

returns 0 on success, errno code on failure

Definition at line 355 of file iser_memory.c.