TUTORIALS 》 Raspberry Pi GPIO Pins - Raw Kernel Access via sysfs - GPIO Linux Kernel Drivers
Here is a my multi-episode Youtube video series of me doing a live code (Code with Kiran Series).
Linux Kernel GPIO drivers of Raspberry Pi offers access/control directly via sysfs filesystem interface. But often people don't see this aspect, instead as a part of IoT, they assume these GPIO pins can be only accessed by some Python, Java or C/C++ code libraries. But in the real case those libraries are just an abstract layer written around the core Kernel GPIO driver's sysfs filesystem.
So here is an attempt where we learn this aspect in systems architecture point of view. And then later try to attempt writing such user-space GPIO control code without any third-party libraries. Since the sysfs driver access is via regular files (user-space context), we can now use any language of our choice and access the same like any files. In that process we can attempt writing our own bunch of abstract APIs resembling a typical GPIO access library.
I also conduct sessions/classes on Systems and Network software programming and architecture. If you are interested, click HERE for more details.
After watching all previous episodes, one of my student asked few questions. Such as accessing these sysfs files via fopen instead embedded bash scripts via system() API. Hence I shot this additional detailed add-on video (split into multiple parts).
Also recommend to watch:
Join The Linux Channel :: Facebook Group ↗
Visit The Linux Channel :: on Youtube ↗
💗 Help shape the future: Sponsor/Donate