Skip to contentSkip to conversation

Endianness Questions

DISCUSSION nick 2 participants 3 messages Sep 1, 2014 – Sep 2, 2014

lore
Share & tools
lore

nick

author
#0 lore raw

Hey Guys,
I have a question about ordering of bits with the types for signed and unsigned in the kernel tree. I am wondering if my list below is a good list of major areas of the kernel that need variable ordering based to a certain endianness. If there are any more I am missing please let me known. Cheers Nick
1. Certain Hardware Protocols like USB and PCI
2. Network Protocols
3. Keeping Data in a certain order preservation like for file systems

#1 lore raw
Quoted 12 lines · nick

Hey Guys,
I have a question about ordering of bits with the types for signed and unsigned in the kernel tree.
I am wondering if my list below is a good list of major areas of the kernel that need variable ordering
based to a certain endianness. If there are any more I am missing please let me known.
Cheers Nick
1. Certain Hardware Protocols like USB and PCI
2. Network Protocols
3. Keeping Data in a certain order preservation like for file systems

ATA and SCSI deserve explicit call out. Where do you put them in the above list?

Fyi, I consider one a hardware protocol and the other a network protocol. I let you figure out which is which.

Greg

Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
author
#2 lore raw

-------- Forwarded Message --------
Subject: Re: Endianness Questions
Date: Mon, 01 Sep 2014 08:34:10 -0400
From: Greg Freemyer <[email protected]>
To: nick <[email protected]>, kernelnewbies <[email protected]>

Quoted 12 lines · nick

Hey Guys,
I have a question about ordering of bits with the types for signed and unsigned in the kernel tree.
I am wondering if my list below is a good list of major areas of the kernel that need variable ordering
based to a certain endianness. If there are any more I am missing please let me known.
Cheers Nick
1. Certain Hardware Protocols like USB and PCI
2. Network Protocols
3. Keeping Data in a certain order preservation like for file systems

ATA and SCSI deserve explicit call out. Where do you put them in the above list?

Fyi, I consider one a hardware protocol and the other a network protocol. I let you figure out which is which.

Greg

Signature · 5 lines
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


ATA is under hardware and SCSI is for networking.
Cheers Nick