HomeFreeBSD

Add two convenience functions for device drivers: bus_alloc_resources()

Description

Add two convenience functions for device drivers: bus_alloc_resources()
and bus_free_resources(). These functions take a list of resources
and handle them all in one go. A flag makes it possible to mark
a resource as optional.

A typical device driver can save 10-30 lines of code by using these.

Usage examples will follow RSN.

MFC: A good idea, eventually.

Details

Provenance
phkAuthored on Sep 24 2005, 7:31 PM
Parents
rGc4a4b66d17bb: I have confirmed with my Epson EEN10B that it needs to look at the
Branches
Unknown
Tags
Unknown

Event Timeline