# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

##### 27.3.1.1. C++ constructor

- userland/cpp/initializer_list_constructor.cpp: documents stuff like `std::vector<int> v{0, 1};` and `std::initializer_list`

- userland/cpp/most_vexing_parse.cpp: the most vexing parse is a famous constructor vs function declaration syntax gotcha!

  - https://en.wikipedia.org/wiki/Most_vexing_parse

  - http://stackoverflow.com/questions/180172/default-constructor-with-empty-brackets

- `virtual` and polymorphism

  - userland/cpp/virtual.cpp

- C++ rule of five