Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing Linux Kernel Modules in Python

I have been wondering if developing Linux kernel modules (drivers) with Python is possible. Is it?

like image 884
bolzano Avatar asked Mar 12 '14 14:03

bolzano


2 Answers

Yes, it is possible:

http://www.kplugs.org/

Although not recommended in production machines, this can be really useful while prototyping your driver.

like image 147
Governa Avatar answered Sep 20 '22 15:09

Governa


See here we have certain issues.

  1. We have to understand why Linus Torvalds himself preferred C and Assembly language.C is the only language that won't hinder your performance on raw hardware. The Operating System was designed to use as much minimal resources as possible.
  2. Coming to Python, we already know that it's an interpreted language. So thereby its slow as it runs on a virtual environment.
  3. Yes you can definitely try some. Check this

  4. Instead you can really look forward to filesystem programming and multilevel cache organization and such using python.

like image 27
Abhishek Dey Avatar answered Sep 21 '22 15:09

Abhishek Dey