target_core_tpg.h 1.5 KB

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