Crate dpdk_unix[][src]

#dpdk-unix

This crate proves additional mid-level functionality for Unix-like Operating Systems which wraps functionality found in low-level FFI bindings for libc.

It also provides a very small modicum of Windows support to get the current program name.

Modules

android_linux

Functionality to provide mid-level wrappers on Linux and Android.

memory_information

Memory Information.

signals

Support for signals.

Structs

Daemonize

An object that can be used with a configuration file (eg via Serde) to configure a daemon.

DaemonizeCleanUpOnExit

This object encapsulates a piece of behaviour to run on exit to ensure clean-up.

HyperThread

Represents a logical hyper thread, which in Operating System terms is usually a logical CPU (core).

InterruptRequest

Represents a logical hyper thread, which in Operating System terms is usually a logical CPU (core).

ProcPath

Represents /proc.

SysPath

Represents /sys.

Enums

HugePageSize

Commonly supported huge page sizes for modern popular CPU architectures (x86, ARM, PowerPC).

ListParseError

List parse error.

SetCurrentThreadNameError

An error occurred when setting the current thread name.

VirtualMemoryStatisticName

A list of known virtual memory statistics related to NUMA nodes.

Traits

OsStrExtMore

An extension trait for OsStr.

PathExt

An extension trait to make it easier to work with sys and proc files and folders.

Functions

assert_effective_user_id_is_root

Asserts that the effective user id (uid) is root.

get_program_name

Gets the program name using the best available technique for the Operating System.

page_size

A very slightly faster function to get page size than sysconf(_SC_PAGESIZE) on musl libc systems.

set_current_thread_name

Sets the current thread name.