We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MemPool::limit
1 parent 9d1e4dd commit a52430aCopy full SHA for a52430a
src/drivers/virtio/virtqueue/mod.rs
@@ -513,13 +513,8 @@ pub enum BufferType {
513
}
514
515
/// MemPool allows to easily control, request and provide memory for Virtqueues.
516
-///
517
-/// The struct is initialized with a limit of free running "tracked"
518
-/// memory descriptor ids. As Virtqueus do only allow a limited amount of descriptors in their queue,
519
-/// the independent queues, can control the number of descriptors by this.
520
struct MemPool {
521
pool: Vec<u16>,
522
- limit: u16,
523
524
525
impl MemPool {
@@ -532,7 +527,6 @@ impl MemPool {
532
527
fn new(size: u16) -> MemPool {
533
528
MemPool {
534
529
pool: (0..size).collect(),
535
- limit: size,
536
530
537
531
538
0 commit comments