# COSC562 Lab: Build Device Drivers for PCI and VirtIO from Scratch

Original title: Device Drivers lab exercise – COSC562

> Hacker News story 49686503 · language: en · submitted 2026-09-13
> Web version: https://zeli.app/story/49686503
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 47 · by [azhenley](<https://news.ycombinator.com/user?id=azhenley>) · 💬 3
[original](<https://web.eecs.utk.edu/~smarz1/courses/cosc562/drivers.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49686503>)

## Summary

A university lab exercise that walks through writing device drivers for virtual PCI and VirtIO devices. It covers the ECAM configuration mechanism, PCI address layout, capability lists, MSI-X interrupts, and VirtIO-specific capabilities, with Rust code examples for wrapping ECAM structures and calculating offsets. Students implement initialization handoff from PCI to VirtIO and log devices in a kernel registry.

## Key quote

> VirtIO devices are paravirtualized devices. Since paravirtualized devices know they are virtual, they are easier to configure, and they are more efficient to drive.

## HN discussion (3 comments)

### [vivzkestrel](<https://news.ycombinator.com/item?id=49691600>)

> stupid question once again
>
> \- as a guy who knows a little c++ and absolutely nothing about kernels and drivers
>
> \- what are some top tier guides you recommend that explains how drivers are made, how low level programming is done and more importantly the why behind many many assumptions

### [brcmthrowaway](<https://news.ycombinator.com/item?id=49687542>)

> Why is this here?

---

## Cite

- Page: https://zeli.app/story/49686503
- Date: 2026-09-13
- Source: web.eecs.utk.edu (https://web.eecs.utk.edu/~smarz1/courses/cosc562/drivers.html)
- Hacker News: https://news.ycombinator.com/item?id=49686503

## Other languages

- zh: https://zeli.app/zh/story/49686503 · markdown: https://zeli.app/zh/story/49686503.md
- ja: https://zeli.app/ja/story/49686503 · markdown: https://zeli.app/ja/story/49686503.md
- ko: https://zeli.app/ko/story/49686503 · markdown: https://zeli.app/ko/story/49686503.md
- de: https://zeli.app/de/story/49686503 · markdown: https://zeli.app/de/story/49686503.md
- es: https://zeli.app/es/story/49686503 · markdown: https://zeli.app/es/story/49686503.md
- ru: https://zeli.app/ru/story/49686503 · markdown: https://zeli.app/ru/story/49686503.md
