1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
extern crate libc; use crate::libproc::proc_pid::{PIDInfo, PidInfoFlavor}; #[derive(Default)] pub struct WorkQueueInfo { pub pwq_nthreads : u32, // total number of workqueue threads pub pwq_runthreads : u32, // total number of running workqueue threads pub pwq_blockedthreads : u32, // total number of blocked workqueue threads pub reserved : [u32;1] // reserved for future use } impl PIDInfo for WorkQueueInfo { fn flavor() -> PidInfoFlavor { PidInfoFlavor::WorkQueueInfo } }