xref: /linux/drivers/target/iscsi/iscsi_target.h (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
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 *);
11 extern struct iscsi_np *iscsit_add_np(struct __kernel_sockaddr_storage *,
12 				char *, int);
13 extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
14 				struct iscsi_portal_group *);
15 extern int iscsit_del_np(struct iscsi_np *);
16 extern int iscsit_add_reject_from_cmd(u8, int, int, unsigned char *, struct iscsi_cmd *);
17 extern int iscsit_logout_closesession(struct iscsi_cmd *, struct iscsi_conn *);
18 extern int iscsit_logout_closeconnection(struct iscsi_cmd *, struct iscsi_conn *);
19 extern int iscsit_logout_removeconnforrecovery(struct iscsi_cmd *, struct iscsi_conn *);
20 extern int iscsit_send_async_msg(struct iscsi_conn *, u16, u8, u8);
21 extern int iscsit_build_r2ts_for_cmd(struct iscsi_cmd *, struct iscsi_conn *, bool recovery);
22 extern void iscsit_thread_get_cpumask(struct iscsi_conn *);
23 extern int iscsi_target_tx_thread(void *);
24 extern int iscsi_target_rx_thread(void *);
25 extern int iscsit_close_connection(struct iscsi_conn *);
26 extern int iscsit_close_session(struct iscsi_session *);
27 extern void iscsit_fail_session(struct iscsi_session *);
28 extern int iscsit_free_session(struct iscsi_session *);
29 extern void iscsit_stop_session(struct iscsi_session *, int, int);
30 extern int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *, int);
31 
32 extern struct iscsit_global *iscsit_global;
33 extern struct target_fabric_configfs *lio_target_fabric_configfs;
34 
35 extern struct kmem_cache *lio_dr_cache;
36 extern struct kmem_cache *lio_ooo_cache;
37 extern struct kmem_cache *lio_cmd_cache;
38 extern struct kmem_cache *lio_qr_cache;
39 extern struct kmem_cache *lio_r2t_cache;
40 
41 extern struct idr sess_idr;
42 extern struct mutex auth_id_lock;
43 extern spinlock_t sess_idr_lock;
44 
45 
46 #endif   /*** ISCSI_TARGET_H ***/
47