From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 796881B0F20; Wed, 19 Mar 2025 20:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742415400; cv=none; b=p2bZjghhz1fZUZtgY0QV9gQSsYIecdTF475MnxdsnlWTzsgfqVN8/VWu/Ma2+c0xwWfMnqj/wMYq0DOcDPUqfYbctOLtVab35lYIZDEq8UZyWH11XL9vZt9Ui4NLT0v2QD9pu31ztemN1NLQOlnYXVaV8S/MVrdSRml0FAne398= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742415400; c=relaxed/simple; bh=nz5Sorhb4ps7kptLjC/ZGul4mOFCsLRQTWZ0j3Yv2IE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ESWtYV/qywjt18pJPXZYc3rAHuMROje/+s7UFkXRcXWywnzfFVSZr242QD9bfgYt+oKWIKZeSTcBRFwNN1RCbNMWiMxA7FExpFKH/C7xlQkxLUHQ51Ci7l9IPB1sfYxQfEJKwqMAE5E5dkoKLoBRvsbp1XsFSS59XKIWxyOdUZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kt9iWFZk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kt9iWFZk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2F28C4CEE4; Wed, 19 Mar 2025 20:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742415399; bh=nz5Sorhb4ps7kptLjC/ZGul4mOFCsLRQTWZ0j3Yv2IE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Kt9iWFZkWXaex7mWHax18ZZ53kp9CUm7trX4T4TuDW7phABDZtkEJUwJ0lv/gutRh mp4bQTPEZVhTZaPRc0IvZscB2J8UQeP2TCeDPiBWqQvit4Dsnu81Q9whty1HwQhrPK rGBbJo/FtCYkDx1w0w9d162UACDAiunTq+0BABjC3NUPsyCQM5oxaSVqPG8sifUcvc T2DYTOX/yYRtssK5Wv4TEFT0tGssVZ7rtzuumbFI39ZPCOKxz1AT0rMPQL87mTcSW0 KqKb5wSdRuA5rUcXifcybXj7/Ij4MgQ49mzVz7FHUadxdwxW99axCDZKa03JCOpA0c 3eV4DvE5vdk1w== From: Andreas Hindborg To: "Alice Ryhl" Cc: "Greg Kroah-Hartman" , "Alexander Viro" , "Arnd Bergmann" , "Miguel Ojeda" , "Boqun Feng" , "Gary Guo" , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , "Benno Lossin" , "Trevor Gross" , "Danilo Krummrich" , "Matthew Maurer" , "Lee Jones" , , Subject: Re: [PATCH 5/5] samples: rust_misc_device: Expand the sample to support read()ing from userspace In-Reply-To: <20250311-iov-iter-v1-5-f6c9134ea824@google.com> (Alice Ryhl's message of "Tue, 11 Mar 2025 14:25:16 +0000") References: <20250311-iov-iter-v1-0-f6c9134ea824@google.com> <20250311-iov-iter-v1-5-f6c9134ea824@google.com> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 19 Mar 2025 21:11:16 +0100 Message-ID: <87bjtwg4rf.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Alice Ryhl" writes: > From: Lee Jones > > A userland application can now operate on the char device with read() in > order to consume a locally held buffer. Memory for the buffer is to be > provisioned and the buffer populated in its subsequently provided > write() counterpart. > > Signed-off-by: Lee Jones > Co-developed-by: Alice Ryhl > Signed-off-by: Alice Ryhl Reviewed-by: Andreas Hindborg Best regards, Andreas Hindborg