Skip to main content

allocate_kernel_tls

Function allocate_kernel_tls 

Source
pub fn allocate_kernel_tls() -> RuntimeHandleResult
Expand description

Allocates TLS for the runtime’s fixed kernel-image template.

Template layout, initialization, and alignment belong to the runtime. This operation does not allocate arbitrary application TLS.

On success, handle must be non-zero and uniquely identify a live TLS allocation accepted by [Self::deallocate_tls] until ownership moves.