[][src]Struct dpdk_unix::hyper_thread::InterruptRequest

pub struct InterruptRequest(_);

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

These usually map 1:1 with LogicalCores

Methods

impl InterruptRequest
[src]

pub fn read_interrupt_request_to_hyper_threads_affinity(
    &self,
    proc_path: &ProcPath
) -> Result<BTreeSet<HyperThread>, ListParseError>
[src]

Reads interrupt request (IRQ) affinity to hyper threads.

pub fn read_interrupt_request_to_hyper_threads_affinity_hint(
    &self,
    proc_path: &ProcPath
) -> Result<BTreeSet<HyperThread>, ListParseError>
[src]

This logic seems to exist in the Linux kernel to provide a place for the irqbalance daemon to store some configuration.

pub fn read_interrupt_request_node(
    &self,
    proc_path: &ProcPath
) -> Result<u8, Error>
[src]

?numa node? As always, the Linux documentation sucks.

pub fn read_default_interrupt_request_affinity_hyper_thread_bitmask(
    proc_path: &ProcPath
) -> Result<HyperThreadBitmask, Error>
[src]

Default interrupt request affinity hyper thread mask.

pub fn force_all_interrupt_requests_to_just_these_hyper_threads(
    hyper_threads: &BTreeSet<HyperThread>,
    proc_path: &ProcPath
) -> Result<()>
[src]

We ignore failures as the /proc for interrupt requests is brittle.

pub fn interrupt_requests(proc_path: &ProcPath) -> Result<BTreeSet<Self>, Error>
[src]

Returns known interrupt requests (IRQs).

Trait Implementations

impl From<u16> for InterruptRequest
[src]

impl Eq for InterruptRequest
[src]

impl Into<u16> for InterruptRequest
[src]

impl PartialOrd<InterruptRequest> for InterruptRequest
[src]

impl Copy for InterruptRequest
[src]

impl Default for InterruptRequest
[src]

impl PartialEq<InterruptRequest> for InterruptRequest
[src]

impl Clone for InterruptRequest
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for InterruptRequest
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for InterruptRequest
[src]

impl Hash for InterruptRequest
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for InterruptRequest
[src]

impl<'de> Deserialize<'de> for InterruptRequest
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]