Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 1 | #ifndef ISCSI_TARGET_H |
| 2 | #define ISCSI_TARGET_H |
| 3 | |
| 4 | extern struct iscsi_tiqn *iscsit_get_tiqn_for_login(unsigned char *); |
| 5 | extern struct iscsi_tiqn *iscsit_get_tiqn(unsigned char *, int); |
| 6 | extern void iscsit_put_tiqn_for_login(struct iscsi_tiqn *); |
| 7 | extern struct iscsi_tiqn *iscsit_add_tiqn(unsigned char *); |
| 8 | extern void iscsit_del_tiqn(struct iscsi_tiqn *); |
| 9 | extern int iscsit_access_np(struct iscsi_np *, struct iscsi_portal_group *); |
| 10 | extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *); |
Nicholas Bellinger | 05b9689 | 2013-02-18 20:59:27 -0800 | [diff] [blame] | 11 | extern bool iscsit_check_np_match(struct __kernel_sockaddr_storage *, |
| 12 | struct iscsi_np *, int); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 13 | extern struct iscsi_np *iscsit_add_np(struct __kernel_sockaddr_storage *, |
| 14 | char *, int); |
| 15 | extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *, |
| 16 | struct iscsi_portal_group *); |
| 17 | extern int iscsit_del_np(struct iscsi_np *); |
| 18 | extern int iscsit_add_reject_from_cmd(u8, int, int, unsigned char *, struct iscsi_cmd *); |
Nicholas Bellinger | 3e1c81a | 2013-03-06 22:18:24 -0800 | [diff] [blame] | 19 | extern void iscsit_set_unsoliticed_dataout(struct iscsi_cmd *); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 20 | extern int iscsit_logout_closesession(struct iscsi_cmd *, struct iscsi_conn *); |
| 21 | extern int iscsit_logout_closeconnection(struct iscsi_cmd *, struct iscsi_conn *); |
| 22 | extern int iscsit_logout_removeconnforrecovery(struct iscsi_cmd *, struct iscsi_conn *); |
| 23 | extern int iscsit_send_async_msg(struct iscsi_conn *, u16, u8, u8); |
Nicholas Bellinger | 3e1c81a | 2013-03-06 22:18:24 -0800 | [diff] [blame] | 24 | extern int iscsit_build_r2ts_for_cmd(struct iscsi_conn *, struct iscsi_cmd *, bool recovery); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 25 | extern void iscsit_thread_get_cpumask(struct iscsi_conn *); |
| 26 | extern int iscsi_target_tx_thread(void *); |
| 27 | extern int iscsi_target_rx_thread(void *); |
| 28 | extern int iscsit_close_connection(struct iscsi_conn *); |
| 29 | extern int iscsit_close_session(struct iscsi_session *); |
| 30 | extern void iscsit_fail_session(struct iscsi_session *); |
| 31 | extern int iscsit_free_session(struct iscsi_session *); |
| 32 | extern void iscsit_stop_session(struct iscsi_session *, int, int); |
| 33 | extern int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *, int); |
| 34 | |
| 35 | extern struct iscsit_global *iscsit_global; |
| 36 | extern struct target_fabric_configfs *lio_target_fabric_configfs; |
| 37 | |
| 38 | extern struct kmem_cache *lio_dr_cache; |
| 39 | extern struct kmem_cache *lio_ooo_cache; |
| 40 | extern struct kmem_cache *lio_cmd_cache; |
| 41 | extern struct kmem_cache *lio_qr_cache; |
| 42 | extern struct kmem_cache *lio_r2t_cache; |
| 43 | |
Christoph Hellwig | fceb5bc | 2012-09-26 08:00:36 -0400 | [diff] [blame] | 44 | extern struct idr sess_idr; |
| 45 | extern struct mutex auth_id_lock; |
| 46 | extern spinlock_t sess_idr_lock; |
| 47 | |
| 48 | |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 49 | #endif /*** ISCSI_TARGET_H ***/ |