]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: device: introduce device::CoreInternal
authorDanilo Krummrich <dakr@kernel.org>
Sat, 21 Jun 2025 19:43:27 +0000 (21:43 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 8 Jul 2025 22:04:05 +0000 (00:04 +0200)
commitfa7486d3f9470c58c5971caba7244cc8773672e0
tree6f60c1f6e8fff7a17df8d975008947ff34c4c640
parent5cddd546df0fa21316735d1d60fe826886e0dc21
rust: device: introduce device::CoreInternal

Introduce an internal device context, which is semantically equivalent
to the Core device context, but reserved for bus abstractions.

This allows implementing methods for the Device type, which are limited
to be used within the core context of bus abstractions, i.e. restrict
the availability for drivers.

Link: https://lore.kernel.org/r/20250621195118.124245-2-dakr@kernel.org
[ Rename device::Internal to device::CoreInternal. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/device.rs