Hardware Support

cat-hardware-support

Interface with specific CPU or other hardware features.

For operating system interaction, you'll often use system calls. For external peripherals, you'll need to find or create crates that provide access to the specific device. For embedded systems, HAL crates are essential.

Processor Management

RecipeCratesCategories
Check the Number of Logical cpu Coresnum_cpuscat-hardware-support
SIMD (Single Instruction, Multiple Data) Operations[![std::arch][c-std::arch-badge]][c-std::arch]cat-hardware-support

Peripheral Devices

RecipeCratesCategories
cat-hardware-support

Memory-mapped I/O

Interact with hardware registers in embedded systems.

FIXME

Interrupts

Hardware signals the CPU through interrupts.

FIXME

Device Drivers

Software that interfaces between the operating system and hardware.

Hardware Protocols

FIXME how devices communicate with each other

Memory Management

See Memory Management.

Operating System Interaction - System Calls

User-space programs request services from the operating system kernel via system calls.

  • std::os::unix provides access to Unix-specific system calls.
  • std::os::windows provides access to Windows-specific system calls.

See FreeBSD APIs, Linux APIs, macOS APIs, Unix APIs, Windows APIs and Rust OSes.

no_std Environments

  • core provides the bare minimum for writing code without the standard library.
  • alloc provides memory allocation APIs for no-std environments.

See no std.

Embedded Systems

See Embedded Systems.