xref: /linux/rust/kernel/sizes.rs (revision 06a130e42a5bfc84795464bff023bff4c16f58c5)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 //! Commonly used sizes.
4 //!
5 //! C headers: [`include/linux/sizes.h`](srctree/include/linux/sizes.h).
6 
7 /// 0x00000400
8 pub const SZ_1K: usize = bindings::SZ_1K as usize;
9 /// 0x00000800
10 pub const SZ_2K: usize = bindings::SZ_2K as usize;
11 /// 0x00001000
12 pub const SZ_4K: usize = bindings::SZ_4K as usize;
13 /// 0x00002000
14 pub const SZ_8K: usize = bindings::SZ_8K as usize;
15 /// 0x00004000
16 pub const SZ_16K: usize = bindings::SZ_16K as usize;
17 /// 0x00008000
18 pub const SZ_32K: usize = bindings::SZ_32K as usize;
19 /// 0x00010000
20 pub const SZ_64K: usize = bindings::SZ_64K as usize;
21 /// 0x00020000
22 pub const SZ_128K: usize = bindings::SZ_128K as usize;
23 /// 0x00040000
24 pub const SZ_256K: usize = bindings::SZ_256K as usize;
25 /// 0x00080000
26 pub const SZ_512K: usize = bindings::SZ_512K as usize;
27