Crate kernel

Source
Expand description

The kernel crate.

This crate contains the kernel APIs that have been ported or wrapped for usage by Rust code in the kernel and is shared by all of them.

In other words, all the rest of the Rust code in the kernel (e.g. kernel modules written in Rust) depends on core and this crate.

If you need a kernel C API that is not ported or wrapped yet here, then do so first instead of bypassing this crate.

Re-exports§

Modules§

  • Implementation of the kernel’s memory allocation infrastructure.
  • Types for working with the block layer.
  • Credentials management.
  • Generic devices that are part of the kernel’s driver model.
  • Kernel errors.
  • Firmware abstraction
  • Kernel file systems.
  • API to safely and fallibly initialize pinned structs using in-place constructors.
  • ioctl() number definitions.
  • Logic for static keys.
  • A linked list implementation.
  • Miscdevice support.
  • Networking.
  • Kernel page allocation and management.
  • Pid namespaces.
  • The kernel prelude.
  • Printing facilities.
  • Red-black trees.
  • Linux Security Modules (LSM).
  • Seq file bindings.
  • Commonly used sizes.
  • String representations.
  • Synchronisation primitives.
  • Tasks (threads and processes).
  • Time related primitives.
  • Logic for tracepoints.
  • Traits for transmuting types.
  • Kernel types.
  • Slices to user space memory regions.
  • Work queues.

Macros§

Structs§

Traits§

  • A module that is pinned and initialised in-place.
  • The top level entrypoint to implementing a kernel module.