Home:ALL Converter>Is possible to run a Python program through a kernel module written in C?

Is possible to run a Python program through a kernel module written in C?

Ask Time:2019-05-14T23:47:01         Author:Michele Lo Presti

Json Formatter

Using my RaspberryPi, I would like to create a kernel module that open a python program, which in turn, It will interface with GPIO.

Is possible to do it?

EDIT:

I will explain my reason: I have a circuit with some buttons, and a python program allow each button to play a sound. So, in my mind, if I open a python program through Kernel Module , I do just 1 call to user space, not as many as the buttons that plays the sounds.

Author:Michele Lo Presti,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56134236/is-possible-to-run-a-python-program-through-a-kernel-module-written-in-c
yy