From f22b6d776c20a16abb7cbfc2f446a96dcb80d8f6 Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 25 Sep 2007 22:09:51 +0000 Subject: [PATCH] Add a utility function to copy the target information to the caller - used in the initiator functionality to keep a track of the target details. --- dist/iscsi/src/initiator.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/iscsi/src/initiator.c b/dist/iscsi/src/initiator.c index 13d74f5411a5..43e0ba69f45b 100644 --- a/dist/iscsi/src/initiator.c +++ b/dist/iscsi/src/initiator.c @@ -3072,3 +3072,9 @@ initiator_discover(char *host, uint64_t target, int lun) } return 0; } + +void +get_target_info(uint64_t target, initiator_target_t *ip) +{ + (void) memcpy(ip, &g_target[target], sizeof(*ip)); +}