On 7/27/06, Martin Röhricht <ml@xxxxxxxxxxx> wrote:
Am Donnerstag, den 27.07.2006, 23:14 +0530 schrieb Gaurav Dhiman: > Can someone point me the use of these funtions in kernel, and why we > use them, does not the compiler handle the machine specific endian > issues ?? Consider using networking packets. To interpret them in the correct way they need to be specified for one order. The Bluetooth specification for example specifies it's packets in little endian order. If you didn't use
Another example is PCI specification. All the data put onto the pci buses should be little endian. Assuming we are running on PPC, every read/write to pci must be converted back and forth. You can find the examples in almost all pci device drivers Regards, Om. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/