문제

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

도움이 되었습니까?

해결책

Yes, it is possible:

http://www.kplugs.org/

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

다른 팁

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.

No; LKM on Linux have to be compiled down do a specific ELF object code format.

Of course you could make your own hack of Python that does compile down to kernel object code, but as far as I know, at this time there is no such Python publicly available.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top