Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
target_core_tpg.c File Reference
#include <linux/net.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/in.h>
#include <linux/export.h>
#include <net/sock.h>
#include <net/tcp.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <target/target_core_base.h>
#include <target/target_core_backend.h>
#include <target/target_core_fabric.h>
#include "target_core_internal.h"

Go to the source code of this file.

Functions

struct se_node_acl__core_tpg_get_initiator_node_acl (struct se_portal_group *tpg, const char *initiatorname)
 
struct se_node_aclcore_tpg_get_initiator_node_acl (struct se_portal_group *tpg, unsigned char *initiatorname)
 
void core_tpg_add_node_to_devs (struct se_node_acl *acl, struct se_portal_group *tpg)
 
void array_free (void *array, int n)
 
struct se_node_aclcore_tpg_check_initiator_node_acl (struct se_portal_group *tpg, unsigned char *initiatorname)
 
 EXPORT_SYMBOL (core_tpg_check_initiator_node_acl)
 
void core_tpg_wait_for_nacl_pr_ref (struct se_node_acl *nacl)
 
void core_tpg_clear_object_luns (struct se_portal_group *tpg)
 
 EXPORT_SYMBOL (core_tpg_clear_object_luns)
 
struct se_node_aclcore_tpg_add_initiator_node_acl (struct se_portal_group *tpg, struct se_node_acl *se_nacl, const char *initiatorname, u32 queue_depth)
 
 EXPORT_SYMBOL (core_tpg_add_initiator_node_acl)
 
int core_tpg_del_initiator_node_acl (struct se_portal_group *tpg, struct se_node_acl *acl, int force)
 
 EXPORT_SYMBOL (core_tpg_del_initiator_node_acl)
 
int core_tpg_set_initiator_node_queue_depth (struct se_portal_group *tpg, unsigned char *initiatorname, u32 queue_depth, int force)
 
 EXPORT_SYMBOL (core_tpg_set_initiator_node_queue_depth)
 
int core_tpg_register (struct target_core_fabric_ops *tfo, struct se_wwn *se_wwn, struct se_portal_group *se_tpg, void *tpg_fabric_ptr, int se_tpg_type)
 
 EXPORT_SYMBOL (core_tpg_register)
 
int core_tpg_deregister (struct se_portal_group *se_tpg)
 
 EXPORT_SYMBOL (core_tpg_deregister)
 
struct se_luncore_tpg_pre_addlun (struct se_portal_group *tpg, u32 unpacked_lun)
 
int core_tpg_post_addlun (struct se_portal_group *tpg, struct se_lun *lun, u32 lun_access, void *lun_ptr)
 
struct se_luncore_tpg_pre_dellun (struct se_portal_group *tpg, u32 unpacked_lun)
 
int core_tpg_post_dellun (struct se_portal_group *tpg, struct se_lun *lun)
 

Variables

struct se_deviceg_lun0_dev
 

Function Documentation

struct se_node_acl* __core_tpg_get_initiator_node_acl ( struct se_portal_group tpg,
const char initiatorname 
)
read

Definition at line 92 of file target_core_tpg.c.

void array_free ( void array,
int  n 
)

Definition at line 200 of file target_core_tpg.c.

struct se_node_acl* core_tpg_add_initiator_node_acl ( struct se_portal_group tpg,
struct se_node_acl se_nacl,
const char initiatorname,
u32  queue_depth 
)
read

Definition at line 358 of file target_core_tpg.c.

void core_tpg_add_node_to_devs ( struct se_node_acl acl,
struct se_portal_group tpg 
)

Definition at line 133 of file target_core_tpg.c.

struct se_node_acl* core_tpg_check_initiator_node_acl ( struct se_portal_group tpg,
unsigned char initiatorname 
)
read

Definition at line 261 of file target_core_tpg.c.

void core_tpg_clear_object_luns ( struct se_portal_group tpg)

Definition at line 333 of file target_core_tpg.c.

int core_tpg_del_initiator_node_acl ( struct se_portal_group tpg,
struct se_node_acl acl,
int  force 
)

Definition at line 451 of file target_core_tpg.c.

int core_tpg_deregister ( struct se_portal_group se_tpg)

Definition at line 718 of file target_core_tpg.c.

struct se_node_acl* core_tpg_get_initiator_node_acl ( struct se_portal_group tpg,
unsigned char initiatorname 
)
read

Definition at line 110 of file target_core_tpg.c.

int core_tpg_post_addlun ( struct se_portal_group tpg,
struct se_lun lun,
u32  lun_access,
void lun_ptr 
)

Definition at line 794 of file target_core_tpg.c.

int core_tpg_post_dellun ( struct se_portal_group tpg,
struct se_lun lun 
)

Definition at line 852 of file target_core_tpg.c.

struct se_lun* core_tpg_pre_addlun ( struct se_portal_group tpg,
u32  unpacked_lun 
)
read

Definition at line 764 of file target_core_tpg.c.

struct se_lun* core_tpg_pre_dellun ( struct se_portal_group tpg,
u32  unpacked_lun 
)
read

Definition at line 822 of file target_core_tpg.c.

int core_tpg_register ( struct target_core_fabric_ops tfo,
struct se_wwn se_wwn,
struct se_portal_group se_tpg,
void tpg_fabric_ptr,
int  se_tpg_type 
)

Definition at line 654 of file target_core_tpg.c.

int core_tpg_set_initiator_node_queue_depth ( struct se_portal_group tpg,
unsigned char initiatorname,
u32  queue_depth,
int  force 
)

Definition at line 515 of file target_core_tpg.c.

void core_tpg_wait_for_nacl_pr_ref ( struct se_node_acl nacl)

Definition at line 327 of file target_core_tpg.c.

EXPORT_SYMBOL ( core_tpg_check_initiator_node_acl  )
EXPORT_SYMBOL ( core_tpg_clear_object_luns  )
EXPORT_SYMBOL ( core_tpg_add_initiator_node_acl  )
EXPORT_SYMBOL ( core_tpg_del_initiator_node_acl  )
EXPORT_SYMBOL ( core_tpg_register  )
EXPORT_SYMBOL ( core_tpg_deregister  )

Variable Documentation

struct se_device* g_lun0_dev

Definition at line 59 of file target_core_device.c.