Docs.rs
tg-kernel-alloc-0.1.0-preview.1
tg-kernel-alloc 0.1.0-preview.1
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
DeathWish5
Dependencies
customizable-buddy ^0.0.3
normal
log ^0.4
normal
page-table ^0.0.6
normal
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
transfer
tg_
kernel_
alloc
0.1.0-preview.1
transfer
Sections
Safety
In crate tg_
kernel_
alloc
tg_kernel_alloc
Function
transfer
Copy item path
Source
pub unsafe fn transfer(region: &'static mut [
u8
])
Expand description
将一个内存块托管到内存分配器。
§
Safety
调用者必须确保:
region
内存块与已经转移到分配器的内存块都不重叠
region
未被其他对象引用
region
必须位于初始化时传入的起始位置之后
内存块的所有权将转移到分配器