Re: [PATCH 2/4] SCSI multibyte accessors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-06-23 at 09:15 -0600, Matthew Wilcox wrote:
> Introduce scsi_{get,put}_u{16,24,32}
> 
> The u16 and u32 variants are just aliases for be16 and be32 unaligned
> accessors.  u24 is open-coded byte accessors as the meaning of a
> byteswapped u24 quantity isn't entirely unambiguous, but we know what
> we want to accomplish with scsi_get_u24.
> 
> Also remove scsi_to_u32 and change its only user to scsi_get_u32().

If we're just doing this in the abstract, then we need a u64 as well for
things like port addresses.

Thanks,

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux