Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp821480rdb; Tue, 23 Jan 2024 16:54:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAJ3nhvd4QrtIU9DuOhgi5LXW9jzMf1hVz4XHTmcWttCFNA6HWmgUtFe99rn36ldT31jd0 X-Received: by 2002:a54:408a:0:b0:3bd:3bfe:486d with SMTP id i10-20020a54408a000000b003bd3bfe486dmr747641oii.119.1706057651940; Tue, 23 Jan 2024 16:54:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706057651; cv=pass; d=google.com; s=arc-20160816; b=oaE778AfyVHyoXd7NxdQoUCV93DhpOIgWln1ZA9crrb9cR+bKyCMY8D4kDMbqH5yn6 6Cbn8vK7M1z4T8klucDoZaAmWvluCq1iedLbM1kOqoYur5lY4aq5v1bMepemejla42s/ BURrNGBFBHpiuaGCec1qdjti0KGr3rriq98Qv6LCZ22XjLN+MPovvKf8a1OFaAMFvXDC 1Wv11ZkPlspOv9SLXGDfTfQhB9w2Mbvmjj9Gxq5RiX+CSuSs94leePPdWBMTQzQWcRNm 2M5MB4xMHxMAZ6f+XSkyBqHOcQDjKbg+I/aDDkSo1TwaTcHA0oHei0B6mNuUJ3vy+4TC ebCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xz0ZF1J4J+BOEHRs6MF3ZsRzQ2TN66qhccv2Pi2N+fg=; fh=1dEapytw3BiNJ/4E0MHwU8fueKRTXtyc+nMaVMrC4z8=; b=yr6VNV3oZpM0T7vGW0rylj2xRLB0z7QdxNZ15UW4kX+r+B+j+retWHmkYWhjh9lH3E hC7aXGWdBrbtVqbBlakbES+PyUKIjRYUvHYG5DnF4LOXyWDhi8RNipmGJ1EiAWL7IStu KDgLwMzLjGavg7C02aSU44ln7vrOqbBPIK65IMderqT85+6Kx13DbWudufEcgnxzs7N9 TRhGM5XuUGfBmRxHGTz2QiIofCElLSjoClgXAdGK0Bv1DYUKVBw4km90CnarKt1hLwjT WiQJEEglaSJO8vYh07hT1EPy2g6mnl/65+/Fajc9x/EQjvP+DwRwgN913UBdwHsKfX7a r0vQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lhCUI2Vh; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-36235-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ls1-20020a056a00740100b006da8f6744afsi12530010pfb.219.2024.01.23.16.54.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 16:54:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36235-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lhCUI2Vh; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-36235-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8F4E3285C58 for ; Wed, 24 Jan 2024 00:54:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2697A1FCA; Wed, 24 Jan 2024 00:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lhCUI2Vh" 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 1FC671872; Wed, 24 Jan 2024 00:54:03 +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=1706057644; cv=none; b=ZdC3iwnrYWFr0xkqNNldSFuO8ZDJJpqrg3YFz8smFruv6S7CM/P53Ttwwe7NDrDPWMlvXOMy6kAgxgJ2MZ6kWqn8NpR2E4KWRAzNqcCsYF2F3QQvT7PXpFUfisHVR1KSnn/sLLTWV1xDCTIwsWc2TxonoOPGmzDdAOB2zF6zfuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706057644; c=relaxed/simple; bh=D8/fnoZnYDq6gX23XdA37KFCnw+tAaoRYYE4izrTFqw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WbFSohUiU1dbGvtnD0LhPy82RQEHNi0FhqHDI0Zxb61/FzH4RGVjuwwXyWJYNNp6Sk7NFAjomDhwNoBnnWrvk1w+xgMPionE697IxnDVIhJfzwAfEUzVHLdAut8mXmr4CLz6KYiJojsgc7e01vuy6wgL7/cXeDVTkciGriECFRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lhCUI2Vh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88BE1C433F1; Wed, 24 Jan 2024 00:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706057643; bh=D8/fnoZnYDq6gX23XdA37KFCnw+tAaoRYYE4izrTFqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lhCUI2VhTmxzSzbN1xXEt74XXF2PxfMYqSZuoTdftCHMDHoKpWuiZH2qOT9tEmz2J ELwnWtdCJR7lzwd+fzAAoBuf5iaAL/mO1akL5Mc9ex+3s6nxoaDjOezDhRgGFknPf6 V82UhHWbGLNwNeKeNLNLgwwaKnAfqUHYfY9ABBDQ= Date: Tue, 23 Jan 2024 16:54:02 -0800 From: Greg Kroah-Hartman To: Elizabeth Figura Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, wine-devel@winehq.org, =?iso-8859-1?Q?Andr=E9?= Almeida , Wolfram Sang , Arkadiusz Hiler , Peter Zijlstra Subject: Re: [RFC PATCH 2/9] ntsync: Reserve a minor device number and ioctl range. Message-ID: <2024012356-dove-duke-f7f6@gregkh> References: <20240124004028.16826-1-zfigura@codeweavers.com> <20240124004028.16826-3-zfigura@codeweavers.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240124004028.16826-3-zfigura@codeweavers.com> On Tue, Jan 23, 2024 at 06:40:21PM -0600, Elizabeth Figura wrote: > Signed-off-by: Elizabeth Figura > --- Note, we can't take patches without any changelog text, and you don't want us to :) > Documentation/admin-guide/devices.txt | 3 ++- > Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ > drivers/misc/ntsync.c | 3 ++- > include/linux/miscdevice.h | 1 + > 4 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/Documentation/admin-guide/devices.txt b/Documentation/admin-guide/devices.txt > index 94c98be1329a..041404397ee5 100644 > --- a/Documentation/admin-guide/devices.txt > +++ b/Documentation/admin-guide/devices.txt > @@ -376,8 +376,9 @@ > 240 = /dev/userio Serio driver testing device > 241 = /dev/vhost-vsock Host kernel driver for virtio vsock > 242 = /dev/rfkill Turning off radio transmissions (rfkill) > + 243 = /dev/ntsync NT synchronization primitive device > > - 243-254 Reserved for local use > + 244-254 Reserved for local use Why do you need a fixed minor number? Can't your userspace handle dynamic numbers? What systems require a static value? thanks, greg k-h