Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
iscsi_target_tq.h File Reference

Go to the source code of this file.

Data Structures

struct  iscsi_thread_set
 

Macros

#define TARGET_THREAD_SET_COUNT   4
 
#define ISCSI_RX_THREAD   1
 
#define ISCSI_TX_THREAD   2
 
#define ISCSI_RX_THREAD_NAME   "iscsi_trx"
 
#define ISCSI_TX_THREAD_NAME   "iscsi_ttx"
 
#define ISCSI_BLOCK_RX_THREAD   0x1
 
#define ISCSI_BLOCK_TX_THREAD   0x2
 
#define ISCSI_CLEAR_RX_THREAD   0x1
 
#define ISCSI_CLEAR_TX_THREAD   0x2
 
#define ISCSI_SIGNAL_RX_THREAD   0x1
 
#define ISCSI_SIGNAL_TX_THREAD   0x2
 
#define ISCSI_THREAD_SET_FREE   1
 
#define ISCSI_THREAD_SET_ACTIVE   2
 
#define ISCSI_THREAD_SET_DIE   3
 
#define ISCSI_THREAD_SET_RESET   4
 
#define ISCSI_THREAD_SET_DEALLOCATE_THREADS   5
 
#define ISCSI_TS_BITMAP_BITS   32768
 

Functions

int iscsi_thread_set_force_reinstatement (struct iscsi_conn *)
 
int iscsi_allocate_thread_sets (u32)
 
void iscsi_deallocate_thread_sets (void)
 
void iscsi_activate_thread_set (struct iscsi_conn *, struct iscsi_thread_set *)
 
struct iscsi_thread_setiscsi_get_thread_set (void)
 
void iscsi_set_thread_clear (struct iscsi_conn *, u8)
 
void iscsi_set_thread_set_signal (struct iscsi_conn *, u8)
 
int iscsi_release_thread_set (struct iscsi_conn *)
 
struct iscsi_conniscsi_rx_thread_pre_handler (struct iscsi_thread_set *)
 
struct iscsi_conniscsi_tx_thread_pre_handler (struct iscsi_thread_set *)
 
int iscsi_thread_set_init (void)
 
void iscsi_thread_set_free (void)
 
int iscsi_target_tx_thread (void *)
 
int iscsi_target_rx_thread (void *)
 

Macro Definition Documentation

#define ISCSI_BLOCK_RX_THREAD   0x1

Definition at line 29 of file iscsi_target_tq.h.

#define ISCSI_BLOCK_TX_THREAD   0x2

Definition at line 30 of file iscsi_target_tq.h.

#define ISCSI_CLEAR_RX_THREAD   0x1

Definition at line 31 of file iscsi_target_tq.h.

#define ISCSI_CLEAR_TX_THREAD   0x2

Definition at line 32 of file iscsi_target_tq.h.

#define ISCSI_RX_THREAD   1

Definition at line 25 of file iscsi_target_tq.h.

#define ISCSI_RX_THREAD_NAME   "iscsi_trx"

Definition at line 27 of file iscsi_target_tq.h.

#define ISCSI_SIGNAL_RX_THREAD   0x1

Definition at line 33 of file iscsi_target_tq.h.

#define ISCSI_SIGNAL_TX_THREAD   0x2

Definition at line 34 of file iscsi_target_tq.h.

#define ISCSI_THREAD_SET_ACTIVE   2

Definition at line 38 of file iscsi_target_tq.h.

#define ISCSI_THREAD_SET_DEALLOCATE_THREADS   5

Definition at line 41 of file iscsi_target_tq.h.

#define ISCSI_THREAD_SET_DIE   3

Definition at line 39 of file iscsi_target_tq.h.

#define ISCSI_THREAD_SET_FREE   1

Definition at line 37 of file iscsi_target_tq.h.

#define ISCSI_THREAD_SET_RESET   4

Definition at line 40 of file iscsi_target_tq.h.

#define ISCSI_TS_BITMAP_BITS   32768

Definition at line 44 of file iscsi_target_tq.h.

#define ISCSI_TX_THREAD   2

Definition at line 26 of file iscsi_target_tq.h.

#define ISCSI_TX_THREAD_NAME   "iscsi_ttx"

Definition at line 28 of file iscsi_target_tq.h.

#define TARGET_THREAD_SET_COUNT   4

Definition at line 23 of file iscsi_target_tq.h.

Function Documentation

void iscsi_activate_thread_set ( struct iscsi_conn ,
struct iscsi_thread_set  
)

Definition at line 221 of file iscsi_target_tq.c.

int iscsi_allocate_thread_sets ( u32  )

Definition at line 79 of file iscsi_target_tq.c.

void iscsi_deallocate_thread_sets ( void  )

Definition at line 143 of file iscsi_target_tq.c.

struct iscsi_thread_set* iscsi_get_thread_set ( void  )
read

Definition at line 238 of file iscsi_target_tq.c.

int iscsi_release_thread_set ( struct iscsi_conn )

Definition at line 308 of file iscsi_target_tq.c.

struct iscsi_conn* iscsi_rx_thread_pre_handler ( struct iscsi_thread_set )
read

Definition at line 413 of file iscsi_target_tq.c.

void iscsi_set_thread_clear ( struct iscsi_conn ,
u8   
)

Definition at line 271 of file iscsi_target_tq.c.

void iscsi_set_thread_set_signal ( struct iscsi_conn ,
u8   
)

Definition at line 293 of file iscsi_target_tq.c.

int iscsi_target_rx_thread ( void )

Definition at line 3748 of file iscsi_target.c.

int iscsi_target_tx_thread ( void )

Definition at line 3697 of file iscsi_target.c.

int iscsi_thread_set_force_reinstatement ( struct iscsi_conn )

Definition at line 363 of file iscsi_target_tq.c.

void iscsi_thread_set_free ( void  )

Definition at line 542 of file iscsi_target_tq.c.

int iscsi_thread_set_init ( void  )

Definition at line 526 of file iscsi_target_tq.c.

struct iscsi_conn* iscsi_tx_thread_pre_handler ( struct iscsi_thread_set )
read

Definition at line 466 of file iscsi_target_tq.c.