Linux 3.1-rc1
[linux-kbuild.git] / include / target / target_core_tpg.h
blob77e18729c4c1ff7fbecd0b11beca6de113c1e46c
1 #ifndef TARGET_CORE_TPG_H
2 #define TARGET_CORE_TPG_H
4 extern struct se_node_acl *__core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
5 const char *);
6 extern struct se_node_acl *core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
7 unsigned char *);
8 extern void core_tpg_add_node_to_devs(struct se_node_acl *,
9 struct se_portal_group *);
10 extern struct se_node_acl *core_tpg_check_initiator_node_acl(
11 struct se_portal_group *,
12 unsigned char *);
13 extern void core_tpg_wait_for_nacl_pr_ref(struct se_node_acl *);
14 extern void core_tpg_wait_for_mib_ref(struct se_node_acl *);
15 extern void core_tpg_clear_object_luns(struct se_portal_group *);
16 extern struct se_node_acl *core_tpg_add_initiator_node_acl(
17 struct se_portal_group *,
18 struct se_node_acl *,
19 const char *, u32);
20 extern int core_tpg_del_initiator_node_acl(struct se_portal_group *,
21 struct se_node_acl *, int);
22 extern int core_tpg_set_initiator_node_queue_depth(struct se_portal_group *,
23 unsigned char *, u32, int);
24 extern int core_tpg_register(struct target_core_fabric_ops *,
25 struct se_wwn *,
26 struct se_portal_group *, void *,
27 int);
28 extern int core_tpg_deregister(struct se_portal_group *);
29 extern struct se_lun *core_tpg_pre_addlun(struct se_portal_group *, u32);
30 extern int core_tpg_post_addlun(struct se_portal_group *, struct se_lun *, u32,
31 void *);
32 extern struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32, int *);
33 extern int core_tpg_post_dellun(struct se_portal_group *, struct se_lun *);
35 #endif /* TARGET_CORE_TPG_H */