Merge pull request #816 from sched-ext/rustland-core-update-doc

scx_rustland_core: update documentation about the new API
This commit is contained in:
Andrea Righi 2024-10-17 19:18:16 +00:00 committed by GitHub
commit d336892c71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,9 @@ impl<'a> Scheduler<'a> {
// pub cpu: i32, // CPU where the task is running
// pub sum_exec_runtime: u64, // Total cpu time
// pub weight: u64, // Task static priority
// pub nvcsw: u64, // Total amount of voluntary context switches
// pub slice: u64, // Remaining time slice budget
// pub vtime: u64, // Current task vruntime / deadline (set by the scheduler)
// }
//
// Although the FIFO scheduler doesn't use these fields, they can provide valuable data for

View File

@ -47,6 +47,9 @@
//! pub flags: u64, // task's enqueue flags
//! pub sum_exec_runtime: u64, // Total cpu time in nanoseconds
//! pub weight: u64, // Task priority in the range [1..10000] (default is 100)
//! pub nvcsw: u64, // Total amount of voluntary context switches
//! pub slice: u64, // Remaining time slice budget
//! pub vtime: u64, // Current task vruntime / deadline (set by the scheduler)
//! }
//!
//! Each task dispatched using dispatch_task() contains the following: