From nobody Thu Apr 25 04:15:54 2024 X-Original-To: arch@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 4VQ7wD6Lclz5H2Z7 for ; Thu, 25 Apr 2024 08:15:56 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VQ7wD2phmz4kvW for ; Thu, 25 Apr 2024 08:15:56 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1714032955; x=1714637755; i=garyj@gmx.de; bh=HgLJgNvNWs4vv9zKsKKwUrdSRbCHM/OKt9RJ1bJNycQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:Message-ID:In-Reply-To: References:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=A+5XwsOOohI/57YnQXbmikCAK4alWcyD66b96MQMtMozRHX9lGCm1psAT0o8QE3A MNbiuAnfAxtlu1DKruhs7iXtua+nFM7frks+xfxkWrIFGHR2l6N87JM8Qy+a4l48e jlLzumcuYqNmjAF4ZBLu1TtMEllGrgvQx/ivw56T0VI9X+04itYTMqUBMo4JeFAC3 AJrHzSNeUQHlf4Apt/0/BqxeTV3ApfRU6uwEIzExb6urxEtNxbD22HM6CzkJsK04I ucz3cGmsdTQjKQqOcIAb8LsUiNRO7NsJcHPYJZMEB2NCbDNvH/ARMocRBUX/BMuX6 IPd8fLEnds063nIkQw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([217.226.50.237]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M26vL-1rxzON3GWX-0044IG; Thu, 25 Apr 2024 10:15:54 +0200 Date: Thu, 25 Apr 2024 04:15:54 +0000 From: Gary Jennejohn To: Lexi Winter Cc: arch@freebsd.org Subject: Re: config(8) - remove 'device' Message-ID: <20240425061554.4d1965c8@ernst.home> In-Reply-To: References: Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fgdIeaEKI2FRRUFTJ2ToybW5r5G7hCdDBkYVRfmuRJLd+tDwjtP 0TGdpMIwPRNLxo7Pz/5CaPNcQyYraUD5hkS/YkbcYS9nRvFt2oV8ro6nx+PDAHiFDCHRf7v nZvTv69s+atupAvKWtVdG8gcDci3o/lPTkM7fZHdp9iR4UbfURiSwY6GYRNIaNbaS/Cb/3W jvbGM6xL3TlD1JrArKh2g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:K0sZQxeJvI4=;UVbUbhzp+gyTZl6o/bWWZtGWafN tYJThNZho400CewZmWDgFfenJOz39pYefRsPW2apuZFXTn4l1e/+1Brc3RpuCI94xoICedD3N FzBiIoOgU3BqpQwiSZvUr0EOu+ddTiZRb65dJ+QCFIVOK7qvrBL/wIP9EiIE+eSx49PDK0ZrO DLb8SLiutz16wyHG3tp9EgxJE53zYWizcEtc1rPrbq6KxsasLTIPO+5FsNzgbxsXdIlCcVRSy HmBxykuYWW5fAZI7Fy6Nk3RkNkbOvn/ZkNUWiptFMfG+5cvzdixWrkP2blHdMHD0HizoZjKxs NAS78mDNy6FStCodGds1tWNCTUnlUCWNjU2MxwAIMkJN7jOdUcsSyAHB93eO7hM4D+IyDbf5l WtZY6rXMHV/vJhtnT8biAkYw3JbtyULWSlmNn1qevTglyVsx6A4k9VlSliEF7C7+YY9c/Vmmx /+lW5TOPmtdeLJcg58DkwNGBzAeX8vajMK7Wcb1+it+SunZFydLpObsfWUwdy6w8kEczeKu/p i6gVDPD/mXp4OBSDwjCRvq9FnCY4Nh3vgcmK8vZzPzMFG+qx3GMR/gxBNqI0yWG9jE0OS8Kop uWNBq2A5jNvnx1e+YKBc8Bpy0pfinjZGmJVfumzjZqrsptZPvzQgA/nr4cbyrFmWkUqCOVVic budXsbI2XwiEsOFnNNQPi4u+WN4xc/mrxNb33MtvqDlDk8u6unn9N8l+Ua9tKB6rOYeaP20/t rxNC52Yxg5NmscJLAgfJhwEefFbcwNePugTin7CceMGWMe3W36b8fPwaeAM8X5QYuIeYizIw8 Y7s0UnVxT+6M3npxUsLjOb5emetQTMjdm0jySama3jqCc= X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4VQ7wD2phmz4kvW On Thu, 25 Apr 2024 02:49:25 +0100 Lexi Winter wrote: > hello, > > as older BSD users may remember, 'device' when used in a kernel config > used to have a fairly specific syntax, e.g.: > > device foo0 at pci? irq? ... etc ... > > nowdays of course this isn't a thing, you just write: > > device foo > > so, practically this is no different from writing: > > options FOO > > i propose to remove the 'device' syntax from config(8) and simply use > 'options' to include various parts of kernel code in the kernel. > > i am prepared to create a patch to do this, but of course, i would > prefer to find out if people would accept this before putting the effort > in. > > the concrete benefit of this is that we don't have two different > syntaxes in kernel configs that do exactly the same thing. I personally like having device, since this tells me that it's a driver and not an option which affects how the kernel is built, like SCHED_4BSD. For users who use e.g. GENERIC et al. this change wouldn't matter much. But for users using custom kernel configuration files, like I do, it would mean some unnecessary churn. However, I could live with that if the majority considers this change to be a good idea. =2D- Gary Jennejohn