From 93bd74be13ea3f618f042ab191c26283e14a26d4 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Wed, 11 Sep 2024 05:39:47 +0200 Subject: [PATCH] docs: fix documentation links and publicize `Handle` --- oro-kernel/src/lib.rs | 3 +-- oro-kernel/src/registry.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/oro-kernel/src/lib.rs b/oro-kernel/src/lib.rs index 5d833d5c..a8b1c0a3 100644 --- a/oro-kernel/src/lib.rs +++ b/oro-kernel/src/lib.rs @@ -20,10 +20,9 @@ use oro_sync::spinlock::unfair_critical::{InterruptController, UnfairCriticalSpi pub mod id; pub mod module; pub mod port; +pub mod registry; pub mod ring; -pub(crate) mod registry; - /// Core-local instance of the Oro kernel. /// /// Intended to live on the core's respective stack, diff --git a/oro-kernel/src/registry.rs b/oro-kernel/src/registry.rs index 55a3548a..3bfd707f 100644 --- a/oro-kernel/src/registry.rs +++ b/oro-kernel/src/registry.rs @@ -43,7 +43,7 @@ use oro_sync::spinlock::unfair_critical::{InterruptController, UnfairCriticalSpi /// /// Registry allocations return [`Handle`]s, which can be cloned /// and will free the slot when the final user drops it. -pub struct Registry +pub(crate) struct Registry where T: Sized + 'static, IntCtrl: InterruptController, @@ -399,7 +399,7 @@ where } } -/// A lightweight handle to an item in a [`Registry`]. +/// A lightweight handle to an item in a registry. /// /// The handle is a reference-counted item in the registry, /// and is a thin wrapper around an [`UnfairCriticalSpinlock`]