From nobody Mon Mar 20 06:08:24 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pg46h05CSz40GsY for ; Mon, 20 Mar 2023 06:08:28 +0000 (UTC) (envelope-from meka@tilda.center) Received: from c3po.tilda.center (c3po.tilda.center [108.61.164.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pg46g55vBz3sh5 for ; Mon, 20 Mar 2023 06:08:27 +0000 (UTC) (envelope-from meka@tilda.center) Authentication-Results: mx1.freebsd.org; none Received: from tilda.center (meka.rs [109.93.255.137]) by c3po.tilda.center (Postfix) with ESMTPSA id 0E85B10EF1; Mon, 20 Mar 2023 07:07:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tilda.center; s=c3po; t=1679292437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=D9lR1RoHdL623WtMJR0/7pZwLsdvYAGtiot7lbSSATA=; b=SeZAFDLu3WB1Ue/yktDWGSdqaN5NelotvKw0Kw3H7MjB9DXPWFIK8WuCsnLCfuePNRkgH3 jlYHIV/dAX35GlHbULmTEU1s2AjWbwRHMQ5W1O2Anz6IDeo5hkA3RI10xT79nk5M0rjDkZ FF2uQEDeQnb8BmNk28XMt89omAlr2yA= Date: Mon, 20 Mar 2023 07:08:24 +0100 From: Goran =?utf-8?B?TWVracSH?= To: Yuri Cc: freebsd-current@FreeBSD.org Subject: Re: Infinite loop with d_write_t Message-ID: <20230320060824.s7rjwetrolqgd7xa@tilda.center> References: <20230319111404.a6ac2w44u4trtedy@tilda.center> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oeomwchyocmwncml" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Pg46g55vBz3sh5 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:108.61.164.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --oeomwchyocmwncml Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 19, 2023 at 12:32:53PM +0100, Yuri wrote: > Why are you using copyin() and not uiomove() in d_write entry? In short, I was following the book. > There's an example that looks like you are trying to do: >=20 > https://docs.freebsd.org/en/books/arch-handbook/driverbasics/#driverbasic= s-char It works perfectly, thank you! I didn't even know we have Driver Basics chapter. Regards, meka --oeomwchyocmwncml Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE1WIFkXy2ZeMKjjKEWj1TknovrLYFAmQX+FQACgkQWj1Tknov rLY47RAAm3gQ61egJAvwO3iFqfr9cWY5AuIGtWDpPR2OukgFmjhdxhn4Vm4KgglF vU41WpTkp9oCKvOc6/ndAl7MJED6ooE/OwhCi58a5Ytk75Fy++HTugHpK2oVUTUn xFCP115cHQFr+851k64Y7MFebE0ohKYQKroswwzD1xIAWnIA2l/54ZHw4Jpja0Sv wF8BvgBblo5ic2lrMDQCqoj/XfWGvS4TCaGhzxhEkLrY1XpJt9IMUNLd/SK+SeVz JzUXwPMCDa7j0inkbVpjqOydCLo6Jl9FJuy1UbJH6HSKDqtgzT1TzvUY/GF9KfHm IxsXmPDEmJy2h+6txU7uwiVDtBk8pHG1ToCkRXeEDudm0GjIRw0MoY92E7rV47DV cEV0oDDiGxW7W8+EKxG7DkrIwo5bZXaEUgAbBJDc7gZhRBsnBTB9sa4+NRq7W4+Q 9l2ONHCw1wURs7+OGC1SuKVAInwJ9QLuiPPq5gEf1BK7kBnCxb6CL6JtlpGPVNp5 eTswY0hb3zposf2cSNolPqZlxRtLAua0mhRuZfoPNZPLI2eM5W70EhDsa7CYb4FL AeZkugKcG8XyhRviP7MIhwe+6USFq0ktRz7zi2j9Yzr+NSkMJthGyf7e/r970Yu9 Qz6q1URcvbJfeHFTf0nhR51Gc1QtdAKSVAPxjsaltEqfgYQzY40= =JRmP -----END PGP SIGNATURE----- --oeomwchyocmwncml--