Messages in this thread | | | Date | Sat, 23 Mar 2024 11:33:26 +0000 | From | Benno Lossin <> | Subject | Re: [RFC PATCH 4/5] rust: block: add rnull, Rust null_blk implementation |
| |
On 3/13/24 12:05, Andreas Hindborg wrote: > +module! { > + type: NullBlkModule, > + name: "rnull_mod", > + author: "Andreas Hindborg", > + license: "GPL v2", > + params: { > + param_memory_backed: bool { > + default: true, > + permissions: 0, > + description: "Use memory backing", > + }, > + // Problems with pin_init when `irq_mode`
Can you elaborate?
-- Cheers, Benno
> + param_irq_mode: u8 { > + default: 0, > + permissions: 0, > + description: "IRQ Mode (0: None, 1: Soft, 2: Timer)", > + }, > + param_capacity_mib: u64 { > + default: 4096, > + permissions: 0, > + description: "Device capacity in MiB", > + }, > + param_completion_time_nsec: u64 { > + default: 1_000_000, > + permissions: 0, > + description: "Completion time in nano seconds for timer mode", > + }, > + param_block_size: u16 { > + default: 4096, > + permissions: 0, > + description: "Block size in bytes", > + }, > + }, > +}
| |