blob: 12abb4c9e34ef4df14ea3b72792d15f2b06dba0c [file] [log] [blame]
Nicholas Bellingere48354c2011-07-23 06:43:04 +00001#ifndef ISCSI_TARGET_H
2#define ISCSI_TARGET_H
3
4extern struct iscsi_tiqn *iscsit_get_tiqn_for_login(unsigned char *);
5extern struct iscsi_tiqn *iscsit_get_tiqn(unsigned char *, int);
6extern void iscsit_put_tiqn_for_login(struct iscsi_tiqn *);
7extern struct iscsi_tiqn *iscsit_add_tiqn(unsigned char *);
8extern void iscsit_del_tiqn(struct iscsi_tiqn *);
9extern int iscsit_access_np(struct iscsi_np *, struct iscsi_portal_group *);
10extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *);
11extern struct iscsi_np *iscsit_add_np(struct __kernel_sockaddr_storage *,
12 char *, int);
13extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
14 struct iscsi_portal_group *);
15extern int iscsit_del_np(struct iscsi_np *);
16extern int iscsit_add_reject_from_cmd(u8, int, int, unsigned char *, struct iscsi_cmd *);
17extern int iscsit_logout_closesession(struct iscsi_cmd *, struct iscsi_conn *);
18extern int iscsit_logout_closeconnection(struct iscsi_cmd *, struct iscsi_conn *);
19extern int iscsit_logout_removeconnforrecovery(struct iscsi_cmd *, struct iscsi_conn *);
20extern int iscsit_send_async_msg(struct iscsi_conn *, u16, u8, u8);
Andy Grover8b1e1242012-04-03 15:51:12 -070021extern int iscsit_build_r2ts_for_cmd(struct iscsi_cmd *, struct iscsi_conn *, bool recovery);
Nicholas Bellingere48354c2011-07-23 06:43:04 +000022extern void iscsit_thread_get_cpumask(struct iscsi_conn *);
23extern int iscsi_target_tx_thread(void *);
24extern int iscsi_target_rx_thread(void *);
25extern int iscsit_close_connection(struct iscsi_conn *);
26extern int iscsit_close_session(struct iscsi_session *);
27extern void iscsit_fail_session(struct iscsi_session *);
28extern int iscsit_free_session(struct iscsi_session *);
29extern void iscsit_stop_session(struct iscsi_session *, int, int);
30extern int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *, int);
31
32extern struct iscsit_global *iscsit_global;
33extern struct target_fabric_configfs *lio_target_fabric_configfs;
34
35extern struct kmem_cache *lio_dr_cache;
36extern struct kmem_cache *lio_ooo_cache;
37extern struct kmem_cache *lio_cmd_cache;
38extern struct kmem_cache *lio_qr_cache;
39extern struct kmem_cache *lio_r2t_cache;
40
41#endif /*** ISCSI_TARGET_H ***/