From 50f4df4ad4ddaced989c75981cdbfdd492aa07a9 Mon Sep 17 00:00:00 2001 From: mnc Date: Tue, 17 Jan 2006 00:01:35 +0000 Subject: sync upstream with svn git-svn-id: svn://svn.berlios.de/open-iscsi@458 d7303112-9cec-0310-bdd2-e83a94d6c2b6 --- include/iscsi_if.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/iscsi_if.h b/include/iscsi_if.h index 6cb903a..a0eab84 100644 --- a/include/iscsi_if.h +++ b/include/iscsi_if.h @@ -168,6 +168,8 @@ typedef uint64_t iscsi_connh_t; /* iSCSI Data-Path connection handle */ #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) +#define hostdata_session(_hostdata) (iscsi_ptr(*(unsigned long *)_hostdata)) + /** * iscsi_hostdata - get LLD hostdata from scsi_host * @_hostdata: pointer to scsi host's hostdata -- cgit v1.2.1