#driver #framework #memory-buffer #os #networking

nightly bin+lib driverkit

A driver framework defining standard types and interfaces for writing device drivers

23 breaking releases

0.25.0 Feb 27, 2023
0.24.0 Dec 27, 2022
0.23.0 Dec 16, 2022
0.21.0 Oct 20, 2022
0.2.0 Oct 2, 2018

#587 in Unix APIs

Download history 92/week @ 2024-07-27 27/week @ 2024-09-21

163 downloads per month
Used in processortrace

MIT/Apache

61KB
1K SLoC

Driverkit

Framework for writing and simplifying testing of device drivers. This is work in progress.

Components

  • iomem: managing memory for buffers used by devices such as network cards, disks, etc.
  • devq: a queue interface to talk to hardware descriptor queues.

Usage

Using the DevMem type on Linux will require Hugepages:

echo 100 >/proc/sys/vm/nr_hugepages_mempolicy
echo 4 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages_mempolicy

Dependencies

~2.8–4MB
~37K SLoC