Device Manager

User-space API

The following table lists all functions related to the device manager API.

API Description

BT_DeviceOpen()

Opens a device based on its device name. This is equivalent to opening devices with BT_Open() using a /dev/{name} path.

Design Overview

The bitthunder device manager makes extensive use of the linker to create tables of devices and their associated drivers. This allows drivers to be removed by simply not compiling and linking the relevant driver into the kernel.

This separation between device and driver encourages drivers to be written in a portable style, where no assumptions are made about register address or other resources.

Further Reading

The full API is defined under:

os/include/devman/bt_devman.h

See the implementation under:

os/src/devman/bt_devman.c

See the driver interface under:

os/include/interfaces/bt_if_device.h

Back