Spidev different ioctl structure

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 12 12:57:56 UTC 2021

Hello Andre,

being compatible to Linux is the goal. If this doesn't work, then this 
is a bug. You can add a ticket for this and fix the issues.

On 12/05/2021 08:36, Andre.Nahrwold at dlr.de wrote:
> I discovered that the Spidev include (linux/spi/spidev.h) contains different implementations of the ioctl structure when comparing rtems and linux.
> I used the mode value of the structure and wanted to compile the application for rtems and linux, that is where I got some errors.
> A few further value names differ also: cs, word_delay_usecs, pad.

I don't think the "pad" member should be used by an application.
> Does anybody now why there is this difference?
> Or is it not necessary to use the mode value for the ioctl commands?
> On rtems it looks like this:
> struct spi_ioc_transfer {
>    void *rx_buf;
>    const void *tx_buf;

Maybe use uintptr_t instead of void *.

embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the devel mailing list