Re: [PATCH 1/3] 24-bit types: typedef and macros for accessing 3-bytearrays as integers
From: Boaz Harrosh
Date: Sun Sep 07 2008 - 05:58:06 EST
Chris Leech wrote:
> Both iSCSI and Fibre Channel make use of 24-bit big-endian values in
> frame headers. This patch defines __be24 and __le24 typedefs for a
> structure wrapped around a 3-byte array, and macros to convert back and
> forth to a 32-bit integer.
>
> The undefs in iscsi_proto.h are because of the different calling
> convention for the existing hton24 macro in the iSCSI code. iSCSI will
> be converted in a subsequent patch.
>
> Signed-off-by: Chris Leech <christopher.leech@xxxxxxxxx>
<snip>
Chris please don't cross-post to a mailing list that is members only.
I press reply-all when on linux-scsi or linux-kernel, and then I get
accused of pocking where I don't belong. So just don't do that.
And my advise to the devel@xxxxxxxxxxxxx mailing list. Drop the
members only. It is useless with it. I know because I made the same
mistake with my osd-dev@xxxxxxxxxxxxx Believe me the span-filter
at mailman is fine and the span that will get through is not that bad.
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/