On 8/24/25 3:59 PM, Joel Fernandes wrote:
Add a minimal bitfield library for defining in Rust structures (called
bitstruct), similar in concept to bit fields in C structs. This will be used
for defining page table entries and other structures in nova-core.

Signed-off-by: Joel Fernandes <joelagn...@nvidia.com>
---
  drivers/gpu/nova-core/bitstruct.rs | 149 +++++++++++++++++++++++++++++
  drivers/gpu/nova-core/nova_core.rs |   1 +
  2 files changed, 150 insertions(+)
  create mode 100644 drivers/gpu/nova-core/bitstruct.rs

I think this is much simpler than the register!() macro that we decided to
experiment with and work out within nova-core before making it available as
generic infrastructure.

So, probably this should go under rust/kernel/ directly.

- Danilo

Reply via email to