Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 1 | #ifndef ISCSI_TARGET_TPG_H |
| 2 | #define ISCSI_TARGET_TPG_H |
| 3 | |
| 4 | extern struct iscsi_portal_group *iscsit_alloc_portal_group(struct iscsi_tiqn *, u16); |
| 5 | extern int iscsit_load_discovery_tpg(void); |
| 6 | extern void iscsit_release_discovery_tpg(void); |
| 7 | extern struct iscsi_portal_group *iscsit_get_tpg_from_np(struct iscsi_tiqn *, |
Nicholas Bellinger | d381a80 | 2013-08-15 13:40:17 -0700 | [diff] [blame] | 8 | struct iscsi_np *, struct iscsi_tpg_np **); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 9 | extern int iscsit_get_tpg(struct iscsi_portal_group *); |
| 10 | extern void iscsit_put_tpg(struct iscsi_portal_group *); |
Nicholas Bellinger | a91eb7d | 2013-08-15 12:49:02 -0700 | [diff] [blame] | 11 | extern void iscsit_clear_tpg_np_login_threads(struct iscsi_portal_group *, bool); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 12 | extern void iscsit_tpg_dump_params(struct iscsi_portal_group *); |
| 13 | extern int iscsit_tpg_add_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *); |
| 14 | extern int iscsit_tpg_del_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *, |
| 15 | int); |
| 16 | extern int iscsit_tpg_enable_portal_group(struct iscsi_portal_group *); |
| 17 | extern int iscsit_tpg_disable_portal_group(struct iscsi_portal_group *, int); |
| 18 | extern struct iscsi_node_acl *iscsit_tpg_add_initiator_node_acl( |
| 19 | struct iscsi_portal_group *, const char *, u32); |
| 20 | extern void iscsit_tpg_del_initiator_node_acl(struct iscsi_portal_group *, |
| 21 | struct se_node_acl *); |
| 22 | extern struct iscsi_node_attrib *iscsit_tpg_get_node_attrib(struct iscsi_session *); |
| 23 | extern void iscsit_tpg_del_external_nps(struct iscsi_tpg_np *); |
| 24 | extern struct iscsi_tpg_np *iscsit_tpg_locate_child_np(struct iscsi_tpg_np *, int); |
| 25 | extern struct iscsi_tpg_np *iscsit_tpg_add_network_portal(struct iscsi_portal_group *, |
| 26 | struct __kernel_sockaddr_storage *, char *, struct iscsi_tpg_np *, |
| 27 | int); |
| 28 | extern int iscsit_tpg_del_network_portal(struct iscsi_portal_group *, |
| 29 | struct iscsi_tpg_np *); |
| 30 | extern int iscsit_tpg_set_initiator_node_queue_depth(struct iscsi_portal_group *, |
| 31 | unsigned char *, u32, int); |
| 32 | extern int iscsit_ta_authentication(struct iscsi_portal_group *, u32); |
| 33 | extern int iscsit_ta_login_timeout(struct iscsi_portal_group *, u32); |
| 34 | extern int iscsit_ta_netif_timeout(struct iscsi_portal_group *, u32); |
| 35 | extern int iscsit_ta_generate_node_acls(struct iscsi_portal_group *, u32); |
| 36 | extern int iscsit_ta_default_cmdsn_depth(struct iscsi_portal_group *, u32); |
| 37 | extern int iscsit_ta_cache_dynamic_acls(struct iscsi_portal_group *, u32); |
| 38 | extern int iscsit_ta_demo_mode_write_protect(struct iscsi_portal_group *, u32); |
| 39 | extern int iscsit_ta_prod_mode_write_protect(struct iscsi_portal_group *, u32); |
| 40 | |
| 41 | #endif /* ISCSI_TARGET_TPG_H */ |