Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
b44becc
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
io_uring
ipc
kernel
lib
mm
net
rust
alloc
bindings
kernel
allocator.rs
error.rs
lib.rs
prelude.rs
print.rs
str.rs
macros
.gitignore
Makefile
bindgen_parameters
compiler_builtins.rs
exports.c
helpers.c
samples
scripts
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Breadcrumbs
linux
/
rust
/
kernel
/
prelude.rs
Blame
Blame
Latest commit
History
History
24 lines (17 loc) · 528 Bytes
Breadcrumbs
linux
/
rust
/
kernel
/
prelude.rs
Top
File metadata and controls
Code
Blame
24 lines (17 loc) · 528 Bytes
Raw
// SPDX-License-Identifier: GPL-2.0 //! The `kernel` prelude. //! //! These are the most common items used by Rust code in the kernel, //! intended to be imported by all Rust code, for convenience. //! //! # Examples //! //! ``` //! use kernel::prelude::*; //! ``` pub use core::pin::Pin; pub use alloc::{boxed::Box, vec::Vec}; pub use macros::{module, vtable}; pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn}; pub use super::error::{Error, Result}; pub use super::ThisModule;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
You can’t perform that action at this time.