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.
This commit is contained in:
agc 2007-09-25 22:09:51 +00:00
parent bfe5c01baa
commit f22b6d776c
1 changed files with 6 additions and 0 deletions

View File

@ -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));
}