Type-safe, zero-overhead reference to a kmem_cache in a known lifecycle state. More...
Public Member Functions | |
| auto | activate () noexcept -> kmem_cache_ref< lifecycle_state::active > |
| Transition embryo -> active. Only valid on embryo refs. | |
| auto | begin_destroy () noexcept -> kmem_cache_ref< lifecycle_state::dying > |
| Transition active -> dying. Only valid on active refs. | |
| kmem_cache_ref (const kmem_cache_ref &) noexcept=default | |
| kmem_cache_ref (kmem_cache *p) noexcept | |
| operator bool () const noexcept | |
| auto | operator* () const noexcept -> kmem_cache & |
| auto | operator-> () const noexcept -> kmem_cache * |
| auto | operator= (const kmem_cache_ref &) noexcept -> kmem_cache_ref &=default |
| auto | raw () const noexcept -> kmem_cache * |
Type-safe, zero-overhead reference to a kmem_cache in a known lifecycle state.