Lines Matching full:pub
5 pub mod allocator;
6 pub mod kbox;
7 pub mod kvec;
8 pub mod layout;
10 pub use self::kbox::Box;
11 pub use self::kbox::KBox;
12 pub use self::kbox::KVBox;
13 pub use self::kbox::VBox;
15 pub use self::kvec::IntoIter;
16 pub use self::kvec::KVVec;
17 pub use self::kvec::KVec;
18 pub use self::kvec::VVec;
19 pub use self::kvec::Vec;
23 pub struct AllocError;
34 pub struct Flags(u32);
38 pub(crate) fn as_raw(self) -> u32 { in as_raw()
43 pub fn contains(self, flags: Flags) -> bool { in contains()
72 pub mod flags {
78 pub const __GFP_ZERO: Flags = Flags(bindings::__GFP_ZERO);
86 pub const __GFP_HIGHMEM: Flags = Flags(bindings::__GFP_HIGHMEM);
93 pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
97 pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
100 pub const GFP_KERNEL_ACCOUNT: Flags = Flags(bindings::GFP_KERNEL_ACCOUNT);
105 pub const GFP_NOWAIT: Flags = Flags(bindings::GFP_NOWAIT);
110 pub const __GFP_NOWARN: Flags = Flags(bindings::__GFP_NOWARN);
115 pub struct NumaNode(i32);
122 pub fn new(node: i32) -> Result<Self> { in new()
135 pub const NO_NODE: NumaNode = NumaNode(bindings::NUMA_NO_NODE);
159 pub unsafe trait Allocator {
264 pub(crate) fn dangling_from_layout(layout: Layout) -> NonNull<u8> { in dangling_from_layout()