linux/drivers/target/target_core_fabric_lib.c
<<
>>
Prefs
   1/*******************************************************************************
   2 * Filename:  target_core_fabric_lib.c
   3 *
   4 * This file contains generic high level protocol identifier and PR
   5 * handlers for TCM fabric modules
   6 *
   7 * Copyright (c) 2010 Rising Tide Systems, Inc.
   8 * Copyright (c) 2010 Linux-iSCSI.org9pSPux-iSCSI]=Sg1S}4i.

re_gram n>

 * Fi1lenam1:  target_core_fabric_lib.c
   31/a> *
 2 of the rscense, orSPux-iSCSI]=Sg1S}4i.
   71 1* han1lers for TCM fabric modules
   61/a> *
re_gram n>
distri"hied in the hope that it will be useful,span>
 * Copyright (1c) 2010 Rising Tide Systems, Inc.
 * C1opyri1ht (c) 2010 Linux-iSCSI.org9p MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the" name="L1">   1/**************** v2.6.3022
  
     7
 * Fi2lenam2:  target_core_fabric_lib.c
re_gram; if not, wriie tosthe Free SoftwareSPux-iSCSI]=Sg1S}4i.
   32/a> *   7   72 2* han2lers for TCM fabric modules   7   62/a>   7 * Copyright (2c) 2020 Ris#inclu/ta<c#L7" id=inclu/t /opti/kernel.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7 * C2opyri29 Ris#inclu/ta<c#L7" id=inclu/t /opti/string.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7
  
  .homment"> /opti/c);">.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7
 /opti/spinlock.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7 /opti/export.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7 * Fillenam33 Ris#inclu/ta<c#L7" id=inclu/t scsi   7   334 Ris#inclu/ta<c#L7" id=inclu/t scsi   7   73 3* han36 Ris#inclu/ta<c#L7" id=inclu/t.homment"> ss="line" name="L7"bas>.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7   637 Ris#inclu/ta<c#L7" id=inclu/t   7<.homment"> ss="line" name="L7">   7<.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7 * Copyright (3c) 2030 Ris#inclu/ta<c#L7" id=inclu/t ss="line" name="L7"configfs.h Ris 
	 .c#L7" id="L7" class="line" name="L7">   7 * C3opyri39a>   7
  
   e" name="L7"internal.h Ris quot;.c#L7" id="L7" class="line" name="L7">   7
 e" name="L7"pr.h Ris quot;.c#L7" id="L7" class="line" name="L7">   7   7 * Fi4lenam4:  target_core_fabric_lib.c//span>
>   34/a> *

   74 4* han4lers f name="secode=ucomment"> sref">u0 Ris f name="secode=sas_name>   7 sref">sas_name>   7 sref">s7"portal_gro   Ris *f name="secode=s7"tpg  ment"> sref">s7"tpg Ris).c#L7" id="L7" class="line" name="L7">   7   647 Ris{.c#L7" id="L7" class="line" name="L7">   7 * Copyright (4c) 2040 Ris        rget_core_fabric_lib.c//span>
 * C4opyri4ht (c) 2010 Linux-iSCSI.org999999999* Rm>
	5 v2.6.3052
  
  
n>
def  
d in  seget/t 7.5.1 Tablen362 in spc4r1/a>et_core_fabric_lib.c#L5" id="L5" class="line" name="L5">5">
   7   7 * Fi5lenam5:  ta}.c#L7" id="L7" class="line" name="L7">   7   354ers f name="secode=EXPORT_SYMBOL  ment"> sref">EXPORT_SYMBOL Ris(f name="secode=sas_name>   7 sref">sas_name>   7   7   75 5* han5lers f name="secode=u3**********sref">u32 Ris f name="secode=sas_namepr_transport__lomment"> sref">sas_namepr_transport__l Ris(.c#L7" id="L7" class="line" name="L7">   7   657 Ris        struct f name="secode=s7"portal_gro    ment"> sref">s7"portal_gro   Ris *f name="secode=s7"tpg  ment"> sref">s7"tpg Ris,.c#L7" id="L7" class="line" name="L7">   7 * Copyright (5c) 2058 Ris        struct f name="secode=s7"node_acl  ment"> sref">s7"node_acl Ris *f name="secode=s7"nacl  ment"> sref">s7"nacl Ris,.c#L7" id="L7" class="line" name="L7">   7 * C5opyri59 Ris        struct f name="secode=t10epr_registraet/t  ment"> sref">t10epr_registraet/t Ris *f name="secode=pr_reg  ment"> sref">pr_reg Ris,.c#L7" id="L7" class="line" name="L7">   7
  
   sref">ax+*ame="de Ris,.c#L7" id="L7" class="line" name="L7">   7
 sref">buf Ris).c#L7" id="L7" class="line" name="L7">   7   7 * Fi6lenam63 Ris        unsig 
d char *f name="secode=ptr  ment"> sref">ptr Ris;.c#L7" id="L7" class="line" name="L7">   7   364 Ris        int f name="secode=re.omment"> sref">re. Ris;.c#L7" id="L7" class="line" name="L7">   7   7< ** han66 Ris        rget_core_fabric_lib.c//span>
   66/a> *<99999999* Set PROTOCOL IDENTIFIER tos6hhref=SASspan>
 * Copyright (6c) 2060 Rising Tide Systems, Inc.<99999999*/ric_lib.c#L7" id="L7" class="line" name="L7">   7 * C6opyri69 Ris        f name="secode=buf  ment"> sref">buf Ris[0] =r0x06;.c#L7" id="L7" class="line" name="L7">   7
  
  
 * Fi7lenam7:  target_core_fabric_lib.c<99999999*/ric_lib.c#L7" id="L7" class="line" name="L7">   7   374 Ris        f name="secode=ptr  ment"> sref">ptr Ris =r&f name="secode=s7"nacl  ment"> sref">s7"nacl Ris- 
	 S name="secode=initiatefme="  ment"> sref">initiatefme=" Ris[4]; rget_core_fabric_lib.c// Skip ors/ 'naa. 

	   7   77 7* han76 Ris        f name="secode=re.omment"> sref">re. Ris =rf name="secode=hex2bit  ment"> sref">hex2bit Ris(&f name="secode=buf  ment"> sref">buf Ris[4], f name="secode=ptr  ment"> sref">ptr Ris, 8);.c#L7" id="L7" class="line" name="L7">   7>   677 Ris        if (f name="secode=re.omment"> sref">re. Ris < 0).c#L7" id="L7" class="line" name="L7">   7 * Copyright (7c) 2078 Ris                f name="secode=pr_debug  ment"> sref">pr_debug Ris(fget_core_fabstring"s quot;sas transport__l:=invalid hex string\n"cic_lib);.c#L7" id="L7" class="line" name="L7">   7 * C7opyri79a>   7
  
  
   7 * Fi8lenam83 Ris        lick="r24;.c#L7" id="L7" class="line" name="L7">   7   384  ta}.c#L7" id="L7" class="line" name="L7">   7 sref">EXPORT_SYMBOL Ris(f name="secode=sas_namepr_transport__lomment"> sref">sas_namepr_transport__l Ris);.c#L7" id="L7" class="line" name="L7">   78 8* han86a>   7   687ers f name="secode=u3**********sref">u32 Ris f name="secode=sas_namepr_transport__l_let  ment"> sref">sas_namepr_transport__l_let Ris(.c#L7" id="L7" class="line" name="L7">   7 * Copyright (cc) 2088 Ris        struct f name="secode=s7"portal_gro    ment"> sref">s7"portal_gro   Ris *f name="secode=s7"tpg  ment"> sref">s7"tpg Ris,.c#L7" id="L7" class="line" name="L7">   7 * C8opyri89 Ris        struct f name="secode=s7"node_acl  ment"> sref">s7"node_acl Ris *f name="secode=s7"nacl  ment"> sref">s7"nacl Ris,.c#L7" id="L7" class="line" name="L7">   7
  
   sref">t10epr_registraet/t Ris *f name="secode=pr_reg  ment"> sref">pr_reg Ris,.c#L7" id="L7" class="line" name="L7">   7
 sref">ax+*ame="de Ris).c#L7" id="L7" class="line" name="L7">   7   7 * Fi9lenam93 Ris        *f name="secode=ax+*ame="de  ment"> sref">ax+*ame="de Ris =r0;.c#L7" id="L7" class="line" name="L7">   7   394 Ris        rget_core_fabric_lib.c//span>

9 9* han9lers for TCM fabric modules<99999999* ors/ SAS=Serial et/t Pe_fabrispan>
   69/a> *<99999999*span>
 * Copyright (9c) 2090 Rising Tide Systems, Inc.<99999999* The SAS=Transport ID
n>
hreardcoded 24-byte lengthspan>
 * Coopyri9ht (c) 2010 Linux-iSCSI.org999999999*/ric_lib.c#L7" id="L7" class="line" name="L7">   7
  
  
The origital LXR software by the c#L7" id=http://sourcerefge.nlinprojects/lx/">LXR iSCSunity Ris, this experiSI.oal rs/st/t by c#L7" id=mailto:lx/@ommux.no">lx/@ommux.no Ris.
lx/.ommux.no kindly hosted by c#L7" id=http://www.redpill-ommpro.no">Redpill Lmmpro AS Ris, provider of Lmmux consultiargid="operatt/ts services since 1995.