rtems_io_lookup_name deprecated?

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 9 06:52:00 UTC 2014


On 2014-07-08 15:49, Marcos Díaz wrote:
> Hi, we are developing a CAN driver for a bsp, and at first, we are
> devloping it in order to use it with the rtems io manager. But for
> this I need to use the function rtems_io_lookup_name which is
> deprecated(it works but it gives a warning message) I've been looking
> and it says to use stat() instead, but stat returns a different
> struct, and I need the major and minors numbers that
> rtems_io_lookup_name returns.

The device number field st_dev in struct stat contains the major and minor number.

> So, why has been that function deprecated? what is the correct way of
> develop a driver like this? thanks!
>

If you want a low-overhead driver, then you can use also

http://www.rtems.org/onlinedocs/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.



More information about the devel mailing list