Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1675697lqp; Sat, 23 Mar 2024 04:33:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5aO989eWVfyc0hcpX+7CQA7RRAUkQCAs8xFPAWGyYJckLylcE7WSHr1t45PDDGcoJqemfGbe0YGIg3RGZFLZ74Ewqs9pGs77LXA2LyQ== X-Google-Smtp-Source: AGHT+IFqPB4JAVVpu7ZeadzdPV6V6Ji1+Sq7zdNcxCWv7CSJBDPwxeiHzuEPxuMiGvMOCaw0Vz6I X-Received: by 2002:a05:6a20:431f:b0:1a3:b020:bcb7 with SMTP id h31-20020a056a20431f00b001a3b020bcb7mr2317180pzk.15.1711193635490; Sat, 23 Mar 2024 04:33:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711193635; cv=pass; d=google.com; s=arc-20160816; b=ilYSyIKx8BZr3YAzaJdqAngnbPZmzJGdqQD8z2aKpxElL19ktk1ACWIhsXzhyNG0GE GNFQYhfr7ff5Ot0c0hkuqxhMpeq8AlC1sLxfyXzPoxy36cVrouM3mP6JWLbmX9q6KIpL eVar2wv9QrTSLA/EIxQCoZzOHaHe3zWF6zYBLS5OVXUDFe53elDtQul6HeCn3YAQzBPJ RJcNkh0kfF3mUYj99wOuzUkSfg8eRl60cs9KMLgneVw5skxa+gElbETKKDhSB50ahzs5 l+5GJ11GMa4uf2wf93SBuOS5fRV5qruCw0xjAOqsE9IRRXUMf124Qg85KP8wrFAPpIFd Vrww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=sbVf4Q+GEkWRKl3AKJdJ5EZhyVY97cY1z0wDeX4RD08=; fh=lLUD0Y0lftUliXRu0ABC3iCsqeJl3bPdDmGTUCgf9RI=; b=MYVyMowNrriMmxexy3zCZjLQ1m3Z8XE8ROu8kHKwfgGDm9NU5RGgkHL6lXNdsxZU+z yvoKGLWdfuDTfQWJ1k0Fc2nTt/Myu1gxs/y4FuKk0nuDHAI0qibWgrZp6CdhvOR4Ad+F TSsHRczCBVjr7iIeyBM5KKgeFkHUNV8aoEDOqS8i2+OTIlnqDV5wOCPtAitVCZGP3Udi pezVvw8ViddQ3Ml56Gk32Bacxqf8IZ/oMxCP5Rnnv6L9DQ8gpYcS66vU+KYBS9sDtD4X wGiNW5lk7YG3CKWONSjhH5uTL4pzbg8rBm3z8ZaeY7UKHLaQBZnEGkF06l1fU9TbxUgD YjTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=cxg2ykibv5bgfaxqtmlv6yvxne.protonmail header.b=nlo3uo5j; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-112313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ff17-20020a056a002f5100b006e6b4c1fe37si1423569pfb.302.2024.03.23.04.33.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 04:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=cxg2ykibv5bgfaxqtmlv6yvxne.protonmail header.b=nlo3uo5j; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-112313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D100CB21158 for ; Sat, 23 Mar 2024 11:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF9BC17589; Sat, 23 Mar 2024 11:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="nlo3uo5j" Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5628D12E4E for ; Sat, 23 Mar 2024 11:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711193622; cv=none; b=H/KzhPn2YcFecRh1kKamfMDGHMo1u8DkQqddyaMequdCSfy1SShvVmfNfRq7g6wwJS6XAhWsnsNmrisQTTAjA8A/t64Fd7AEJRnjzTcAFLmO8odwFRW967WB2Ql2t6BbpxxrR1eqvY11+7tHVQA130RQ8TKyunjlPn3fmvYZSPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711193622; c=relaxed/simple; bh=lVMTPBer1GBC0aTfV+tnwQGV28AQ0c+Wn1dED58wnnA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R4kRwDLjz9MvQx9QpwBlZPEm9+xIHNZSxmdVK3Vx4Z5OBRTChHP7xVua+rhSBRa7/+3ZLBXUomXlSBS8IFsrng2tkS0bVLxjMhbxjOfHn3GWHda5OOkGDHlVcvur6B7ZmMEG+zV+yfEOFa8SuIltmKCQLnlHP/BLZRGmK1EQe5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=nlo3uo5j; arc=none smtp.client-ip=185.70.40.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=cxg2ykibv5bgfaxqtmlv6yvxne.protonmail; t=1711193617; x=1711452817; bh=sbVf4Q+GEkWRKl3AKJdJ5EZhyVY97cY1z0wDeX4RD08=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=nlo3uo5jwFPV3LASuBdaa9tVkJKHDJCB94VS22/mtbkuqjcIowj7yS2BfgxC48L3v 2DQGRppJKjlv0EJO/8XDfp1POJ516p/CoNAHURwASRN3LsuQqNPvIc5wSo7RtGtmbB ZNIw8OTenu2gsrOZ8RNgQhjGOUy7GuAQzrab9naDx+ZYQXbMSRgZxlp1R5P52L5zmE UfyoFdwzx7U+FiATuaoQy+4dh97ISrkjkNAh5IUXPfbx74L8yg07wD61zbCjMMh25d pkV84OSACZzeAS31YlS5hW3mObB21Mk1CMUR7cq8hp3ps1u74V6HWOqSqrDTiNo6a4 x5Z1ZeWYqSOhg== Date: Sat, 23 Mar 2024 11:33:26 +0000 To: Andreas Hindborg From: Benno Lossin Cc: Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Bart Van Assche , Hannes Reinecke , "linux-block@vger.kernel.org" , Andreas Hindborg , Niklas Cassel , Greg KH , Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Chaitanya Kulkarni , Luis Chamberlain , Yexuan Yang <1182282462@bupt.edu.cn>, =?utf-8?Q?Sergio_Gonz=C3=A1lez_Collado?= , Joel Granados , "Pankaj Raghav (Samsung)" , Daniel Gomez , open list , "rust-for-linux@vger.kernel.org" , "lsf-pc@lists.linux-foundation.org" , "gost.dev@samsung.com" Subject: Re: [RFC PATCH 4/5] rust: block: add rnull, Rust null_blk implementation Message-ID: In-Reply-To: <20240313110515.70088-5-nmi@metaspace.dk> References: <20240313110515.70088-1-nmi@metaspace.dk> <20240313110515.70088-5-nmi@metaspace.dk> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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? --=20 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", > + }, > + }, > +}