rtems_set_errno_and_return_minus_one in driver not returning correct value

Inderjit Singh inderjit.singh at aacmicrotec.com
Fri Sep 11 11:28:12 UTC 2015


Thanks Sebastian for you response.

So basically you're saying is that i cannot use errno when using the primitve driver standard driver but use IMFS instead if I want to retain an errno value set in driver and that is recieved by the app.

Regards,
Indy


________________________________________
From: devel [devel-bounces at rtems.org] on behalf of Sebastian Huber [sebastian.huber at embedded-brains.de]
Sent: 11 September 2015 10:18
To: devel at rtems.org
Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning correct value

On 11/09/15 10:10, Inderjit Singh wrote:
> Can I presume that using errno with RTEMS does not work? To me I'm
> baffled that a RTEMS_SUCCESSFULL value must be returned in order to
> retain the errno value.

The standard drivers are quite primitive. You may have a look at IMFS
generic nodes, if you want more control:

https://docs.rtems.org/doxygen/cpukit/html/group__IMFSGenericNodes.html

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel at rtems.org
http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list