login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
8
Re: [RFC] Normalizing byteorder/unaligned access API
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marcel Holtmann
Subject:
Re: [RFC] Normalizing byteorder/unaligned access API
Date: Wednesday, October 8, 2008 - 12:31 am
Hi Matthew,
quoted text
> > > On Tue, Oct 07, 2008 at 02:53:11PM -0700, Harvey Harrison wrote: > > > > In addition, there are some subsystems (scsi) that are looking into some > > > > differently sized endian helpers (be24) and it may be worthwhile to have > > > > some agreement whether it is worth making them common infrastructure and > > > > whether they should present a similar API to the common byteorder/unaligned > > > > API. > > > > > > I still think SCSI should have its own accessors, even if they're > > > just wrappers around the common BE code. > > > > > > > I thought it was generally discouraged that subsystems have trivial > > wrappers like that, otherwise you wind up with: > > > > scsi_get_u32 > > usb_get_u32 > > v4l_get_u32 > > > > ... and so on, where as if they all used the common names, people more > > used to other areas of the kernel can still recognize what the code > > is doing without having the lookup another define. > > My point is that they don't have to recognise what the code is doing. > They don't have to know if the protocol is BE or LE, only that USB code > is accessing the data in the appropriate way for USB.
nice idea, but in the real world some stacks mix big and little endian in their protocols. Take Bluetooth as an example ;) Regards Marcel --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] Normalizing byteorder/unaligned access API
, Harvey Harrison
, (Tue Oct 7, 2:53 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, James Bottomley
, (Tue Oct 7, 3:12 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Harvey Harrison
, (Tue Oct 7, 3:39 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Matthew Wilcox
, (Tue Oct 7, 4:28 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Matthew Wilcox
, (Tue Oct 7, 4:33 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Harvey Harrison
, (Tue Oct 7, 4:35 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Harvey Harrison
, (Tue Oct 7, 4:39 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Matthew Wilcox
, (Tue Oct 7, 4:55 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Harvey Harrison
, (Tue Oct 7, 5:02 pm)
Re: [RFC] Normalizing byteorder/unaligned access API
, Geert Uytterhoeven
, (Wed Oct 8, 12:13 am)
Re: [RFC] Normalizing byteorder/unaligned access API
, Geert Uytterhoeven
, (Wed Oct 8, 12:15 am)
Re: [RFC] Normalizing byteorder/unaligned access API
, Marcel Holtmann
, (Wed Oct 8, 12:31 am)
Re: [RFC] Normalizing byteorder/unaligned access API
, Ha