Regarding export of GPIOs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I have some basic questions around the exporting of a GPIO.

1. Regarding gpio-hog mechanism:
The gpio-hog mechanism would help us to initialise a GPIO to either
high/low & in/out during bootup.
This is fine.

So my question is, if we hog a GPIO, does it also gets exported to the
userspace by default?


2. With the older sysfs interface, we would be using "echo x >
/sys/class/gpio/export" to export the gpiox to userspace.

I wanted to know what would be the right way to do this with the newer
interface?

3. To check if a GPIO is being exported or not, we would see the
/sys/class/gpio with the sysfs interface.

With the newer character device interface, what would be the right way
to check what GPIOs are exported to userspace?

Looking forward to hearing from you

Regards,
Rizwan



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux