Skip to main content

kernel/
types.rs

1// Copyright 2026 The Fuchsia Authors
2//
3// Use of this source code is governed by a MIT-style
4// license that can be found in the LICENSE file or at
5// https://opensource.org/licenses/MIT
6
7#[repr(transparent)]
8#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
9pub struct PAddr(pub usize);
10
11#[repr(transparent)]
12#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
13pub struct VAddr(pub usize);
14
15#[allow(non_camel_case_types)]
16pub type cpu_mask_t = u32;