ReuzeLeuk
Posts: 6
Joined: Sun Feb 09, 2020 5:00 pm

GPIO sysfs: "This ABI is depricated"

Mon May 18, 2020 7:40 pm

I was looking into controlling the GPIO and I stumbled across this page:

https://www.kernel.org/doc/Documentation/gpio/sysfs.txt

Which says:
GPIO Sysfs Interface for Userspace
==================================

THIS ABI IS DEPRECATED, THE ABI DOCUMENTATION HAS BEEN MOVED TO
Documentation/ABI/obsolete/sysfs-gpio AND NEW USERSPACE CONSUMERS
ARE SUPPOSED TO USE THE CHARACTER DEVICE ABI. THIS OLD SYSFS ABI WILL
NOT BE DEVELOPED (NO NEW FEATURES), IT WILL JUST BE MAINTAINED.

Refer to the examples in tools/gpio/* for an introduction to the new
character device ABI. Also see the userspace header in
include/uapi/linux/gpio.h
I am running Arch on my Raspberry Pi 4 and it is still available. So will it be removed from the RPI anytime soon? What will it be replaced with?

trejan
Posts: 3063
Joined: Tue Jul 02, 2019 2:28 pm

Re: GPIO sysfs: "This ABI is depricated"

Mon May 18, 2020 8:10 pm

You're posting in the wrong part of the forum. Linux isn't bare metal.
ReuzeLeuk wrote:
Mon May 18, 2020 7:40 pm
So will it be removed from the RPI anytime soon?
No. It isn't going away anytime soon. As mentioned in the documentation, it is continuing to be maintained but no new features will be added.
ReuzeLeuk wrote:
Mon May 18, 2020 7:40 pm
What will it be replaced with?
The /dev/gpiochip* devices together with libgpiod.

Return to “Arch”