# Linux Kernel Module Cheat

### 23.6. Device models

This section documents:

- how to interact with peripheral hardware device models through device drivers

- how to write your own hardware device models for our emulators, see also: https://stackoverflow.com/questions/28315265/how-to-add-a-new-device-in-qemu-source-code

For the more complex interfaces, we focus on simplified educational devices, either:

- present in the QEMU upstream:

  - QEMU edu PCI device

- PCI

- GPIO

- LEDs

- gem5 educational hardware models