Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
target_core_pr.c File Reference
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <asm/unaligned.h>
#include <target/target_core_base.h>
#include <target/target_core_backend.h>
#include <target/target_core_fabric.h>
#include <target/target_core_configfs.h>
#include "target_core_internal.h"
#include "target_core_pr.h"
#include "target_core_ua.h"

Go to the source code of this file.

Data Structures

struct  pr_transport_id_holder
 

Functions

int core_pr_dump_initiator_port (struct t10_pr_registration *pr_reg, char *buf, u32 size)
 
int target_scsi2_reservation_release (struct se_cmd *cmd)
 
int target_scsi2_reservation_reserve (struct se_cmd *cmd)
 
int core_scsi3_alloc_aptpl_registration (struct t10_reservation *pr_tmpl, u64 sa_res_key, unsigned char *i_port, unsigned char *isid, u32 mapped_lun, unsigned char *t_port, u16 tpgt, u32 target_lun, int res_holder, int all_tg_pt, u8 type)
 
int core_scsi3_check_aptpl_registration (struct se_device *dev, struct se_portal_group *tpg, struct se_lun *lun, struct se_lun_acl *lun_acl)
 
void core_scsi3_free_pr_reg_from_nacl (struct se_device *dev, struct se_node_acl *nacl)
 
void core_scsi3_free_all_registrations (struct se_device *dev)
 
unsigned charcore_scsi3_pr_dump_type (int type)
 
int target_scsi3_emulate_pr_out (struct se_cmd *cmd)
 
int target_scsi3_emulate_pr_in (struct se_cmd *cmd)
 
int core_setup_reservations (struct se_device *dev, int force_pt)
 

Function Documentation

int core_pr_dump_initiator_port ( struct t10_pr_registration pr_reg,
char buf,
u32  size 
)

Definition at line 56 of file target_core_pr.c.

int core_scsi3_alloc_aptpl_registration ( struct t10_reservation pr_tmpl,
u64  sa_res_key,
unsigned char i_port,
unsigned char isid,
u32  mapped_lun,
unsigned char t_port,
u16  tpgt,
u32  target_lun,
int  res_holder,
int  all_tg_pt,
u8  type 
)

Definition at line 821 of file target_core_pr.c.

int core_scsi3_check_aptpl_registration ( struct se_device dev,
struct se_portal_group tpg,
struct se_lun lun,
struct se_lun_acl lun_acl 
)

Definition at line 993 of file target_core_pr.c.

void core_scsi3_free_all_registrations ( struct se_device dev)

Definition at line 1365 of file target_core_pr.c.

void core_scsi3_free_pr_reg_from_nacl ( struct se_device dev,
struct se_node_acl nacl 
)

Definition at line 1334 of file target_core_pr.c.

unsigned char* core_scsi3_pr_dump_type ( int  type)

Definition at line 2405 of file target_core_pr.c.

int core_setup_reservations ( struct se_device dev,
int  force_pt 
)

Definition at line 4366 of file target_core_pr.c.

int target_scsi2_reservation_release ( struct se_cmd cmd)

Definition at line 196 of file target_core_pr.c.

int target_scsi2_reservation_reserve ( struct se_cmd cmd)

Definition at line 245 of file target_core_pr.c.

int target_scsi3_emulate_pr_in ( struct se_cmd cmd)

Definition at line 4306 of file target_core_pr.c.

int target_scsi3_emulate_pr_out ( struct se_cmd cmd)

Definition at line 3808 of file target_core_pr.c.