[S] Change in fuchsia/fuchsia[main]: [lib] Add zr and kalloc

0 views
Skip to first unread message

'Adam Barth (Gerrit)' via owners-override

unread,
May 4, 2026, 8:21:04 PM (3 days ago) May 4
to Owners Override

Adam Barth has uploaded the change for review

Commit message

[lib] Add zr and kalloc

This CL adds core libraries for running Rust code in Zircon. These libraries are shared between kernel and userspace and will both be dependencies of FBL.

A later CL will move the existing //zircon/system/ulib/zr crate into //src/lib/zr.

Bug: b/507423574

This CL adds core libraries for running Rust code in Zircon. These
libraries are shared between kernel and userspace and will both be
dependencies of FBL.

A later CL will move the existing //zircon/system/ulib/zr crate into
//src/lib/zr.
Bug: b/507423574
Change-Id: I4bc425202db1260c30ec6e8990d38b808a292387

Change diff

diff --git a/src/lib/kalloc/OWNERS b/src/lib/kalloc/OWNERS
new file mode 100644
index 0000000..496abb7
--- /dev/null
+++ b/src/lib/kalloc/OWNERS
@@ -0,0 +1,2 @@
+aba...@google.com
+include /zircon/kernel/OWNERS
diff --git a/src/lib/kalloc/README.md b/src/lib/kalloc/README.md
new file mode 100644
index 0000000..614598e
--- /dev/null
+++ b/src/lib/kalloc/README.md
@@ -0,0 +1,4 @@
+# kalloc - Fallible Allocations for Zircon
+
+`kalloc` is a Rust crate that provides safe, fallible heap allocation for code
+running in the Zircon kernel or shared between userspace and the kernel.
diff --git a/src/lib/zr/OWNERS b/src/lib/zr/OWNERS
new file mode 100644
index 0000000..496abb7
--- /dev/null
+++ b/src/lib/zr/OWNERS
@@ -0,0 +1,2 @@
+aba...@google.com
+include /zircon/kernel/OWNERS
diff --git a/src/lib/zr/README.md b/src/lib/zr/README.md
new file mode 100644
index 0000000..55472a0
--- /dev/null
+++ b/src/lib/zr/README.md
@@ -0,0 +1,14 @@
+# zr (Zircon Rust Core)
+
+This library contains foundational, zero-dependency Rust primitives for the
+Zircon kernel.
+
+## Purpose
+
+The goal of this crate is to provide the most basic abstractions needed by
+other Rust code in the kernel, without assuming any bindings to C++ kernel
+types.
+
+## Dependencies
+
+This crate must not depend on any other crates in the Zircon kernel tree.

Change information

Files:
  • A src/lib/kalloc/OWNERS
  • A src/lib/kalloc/README.md
  • A src/lib/zr/OWNERS
  • A src/lib/zr/README.md
Change size: S
Delta: 4 files changed, 22 insertions(+), 0 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I4bc425202db1260c30ec6e8990d38b808a292387
Gerrit-Change-Number: 1598988
Gerrit-PatchSet: 3
Gerrit-Owner: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Roland McGrath <mcgr...@google.com>
Gerrit-CC: Nick Maniscalco <manis...@google.com>
Gerrit-CC: Owners Override <owners-...@fuchsia.dev>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/d85ca5a148fd4ae7b9ef3afb9cf3bc5ba4731ed3-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
satisfied_requirement
open
diffy

'Adam Barth (Gerrit)' via owners-override

unread,
May 4, 2026, 8:21:06 PM (3 days ago) May 4
to Owners Override, Roland McGrath, fuchsia-int...@luci-project-accounts.iam.gserviceaccount.com, Nick Maniscalco

Adam Barth voted and added 3 comments

Votes added by Adam Barth

Commit-Queue+1
Fuchsia-Auto-Submit+1

3 comments

File src/lib/kalloc/OWNERS
Line 2, Patchset 2:include /zircon/OWNERS
Roland McGrath . resolved

Should be `/zircon/kernel/OWNERS.

Adam Barth

Done.

File src/lib/zr/OWNERS
Line 2, Patchset 2:include /zircon/OWNERS
Roland McGrath . resolved

ditto

Adam Barth

Done.

Line 2, Patchset 2:include /zircon/OWNERS
Roland McGrath . resolved

ditto

Adam Barth

Done.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I4bc425202db1260c30ec6e8990d38b808a292387
Gerrit-Change-Number: 1598988
Gerrit-PatchSet: 3
Gerrit-Owner: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Roland McGrath <mcgr...@google.com>
Gerrit-CC: Nick Maniscalco <manis...@google.com>
Gerrit-CC: Owners Override <owners-...@fuchsia.dev>
Gerrit-Comment-Date: Tue, 05 May 2026 00:21:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Roland McGrath <mcgr...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/d85ca5a148fd4ae7b9ef3afb9cf3bc5ba4731ed3-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages