Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | /* -> /*- for copyright notices, minor format tweaks as necessary | imp | 2005-01-06 | 1 | -2/+3 |
| | |||||
* | Add delete_unrhdr() function. | phk | 2004-10-25 | 1 | -2/+19 |
| | | | | It will fail fatally if all allocated numbers have not been returned first. | ||||
* | Fix a typo to fix the !DIAGNOSTIC build. | jhb | 2004-09-30 | 1 | -1/+1 |
| | | | | Submitted by: many | ||||
* | Add a new API for allocating unit number (-like) resources. | phk | 2004-09-30 | 1 | -0/+597 |
Allocation is always lowest free unit number. A mixed range/bitmap strategy for maximum memory efficiency. In the typical case where no unit numbers are freed total memory usage is 56 bytes on i386. malloc is called M_WAITOK but no locking is provided (yet). A bit of experience will be necessary to determine the best strategy. Hopefully a "caller provides locking" strategy can be maintained, but that may require use of M_NOWAIT allocation and failure handling. A userland test driver is included. |