Files
DragonOS/docs/locales/en/kernel/libs/id-allocation.md
LoGin 880720250e doc: Add ai doc translate tool and add English doc. (#1168)
- add tools/doc_translator.py
- translated docs into English

Signed-off-by: longjin <longjin@DragonOS.org>
2025-05-20 10:44:28 +08:00

27 lines
798 B
Markdown

:::{note}
**AI Translation Notice**
This document was automatically translated by `Qwen/Qwen3-8B` model, for reference only.
- Source document: kernel/libs/id-allocation.md
- Translation time: 2025-05-19 01:41:12
- Translation model: `Qwen/Qwen3-8B`
Please report issues via [Community Channel](https://github.com/DragonOS-Community/DragonOS/issues)
:::
# ID Allocation
:::{note}
Author: Longjin <longjin@DragonOS.org>
September 25, 2024
:::
The kernel provides an ID allocator named `IdAllocator`, located in `kernel/crates/ida`.
It is capable of allocating and releasing IDs. By default, it increments to allocate IDs. If the ID exceeds the set maximum value, it will search for an available ID starting from the minimum value. If there are no available IDs, the allocation will fail.