Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- From: Marcin Slusarz <marcin.slusarz@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 22:49:34 +0100
On Sun, Dec 30, 2007 at 07:18:25PM +0000, Christoph Hellwig wrote:
On Sun, Dec 30, 2007 at 08:06:34PM +0100, Marcin Slusarz wrote:
There are many places where these functions would be useful.
(just look at: grep -r 'cpu_to_[ble12346]*([ble12346]*_to_cpu.*[-+]' linux-src/)
What do you think?
ps: this patch depends on http://lkml.org/lkml/2007/12/25/35
--
add inline functions which add native byte order variable to
little/big endian variable to core header and as an example
convert ext3 to use them
Various places already have this as be*_add / le*_add, so it might be
more useful to keep those names already in use.
I found it in XFS only. Did I miss something?
be32_add is shorter than be32_add_cpu but I think it's not clear
whether second parameter is in native byte order or not.
Marcin
--
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/
- Follow-Ups:
- Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- From: Christoph Hellwig
- Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- References:
- [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- From: Marcin Slusarz
- Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- From: Christoph Hellwig
- [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- Prev by Date: Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override
- Next by Date: Re: [PATCH] Hibernation: Document __save_processor_state() on x86-64
- Previous by thread: Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- Next by thread: Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core
- Index(es):
Relevant Pages
|
|