Re: [RFC PATCH 4/5] rust: block: add rnull, Rust null_blk implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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",
> +        },
> +    },
> +}





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux