# Linux Kernel Module Cheat

#### 27.7.1. Python

rootfs_overlay/lkmc/python

Examples:

- rootfs_overlay/lkmc/python/hello.py: hello world

- `time`

  - rootfs_overlay/lkmc/python/count.py: count once every second

  - rootfs_overlay/lkmc/python/iter_method.py: how to implement `iter` on a class

- Python standard library

- Build and install the interpreter

- Python gem5 user mode simulation

- Embedding Python in another application

- pybind11