From nobody Tue Jul 30 11:44:18 2024 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 4WYD0P0QJdz5RpjC for ; Tue, 30 Jul 2024 11:44:21 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYD0N74mDz4bdv; Tue, 30 Jul 2024 11:44:20 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722339861; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4QbgXgoVXWmEq5nNXLTlkAnmTA9r66x/wPSI7N5w/S4=; b=Xn9NxcDsw+84NVVgriDncYAxy9dYh2Rf+v3gFNqfOL526c9TzoPuW0NJMEsYwmEOb9QFbK xHmKCY5PtkDsiWMw13nedKOvsvAlMDh3sCHNkfb6LtKguS4++t0weNLXoPGRRD06oBGboC Cl0Gz8dPR9UdXZAf/utmyQ37pwKSQy6s3S+IltLZip+XnXcuPfZimVnq6poEHm8qF8BRZ2 V/9u7TEEZH000/TbOaJxd7aSLSZuVujs10uiJYgbNQ0ghKGVwbphyGDBl6eg2a/D+YofLt IBHgbEx9NKCWBtKUnT/gX9NTu5D2tuePSZwEjIb4YsOMGsM05sGbMz/Nt4VFRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722339861; a=rsa-sha256; cv=none; b=i0ISK63EZiGSsOXKSq/nZyjm2q7v288pphuNEMSPkOcJczXIZaDe17UuzzMAN/ru1wsW/A 2ONTZ4owFv4bFednC6Jg/1agqoTRILdCFRDr9HzN2LquzmPIIEopQ6DYTTI9OmZchqFkU9 FD6p4kiw+CrNo1oQZQBMNfVKv/fyp94+4rjjreQoeI0kvy0hT/Olcp4k2x/7WXbXkYkcAW R33/KFPEYKxmtaLe3ILqpquZ2o8wf3nyRiqwCca4Ii4at+DVyt9L9wI9PP/nt66Ur7p1q9 AXLOrQ8163we6T420UP59sLMVpQKe0YSuX4XMY8Q+sYwNNO5p5RYYpQk3T3m2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722339861; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4QbgXgoVXWmEq5nNXLTlkAnmTA9r66x/wPSI7N5w/S4=; b=rWE6AurvJFH8otAzZZ1VXn1lZML5wNQVZGnFo0/CHW/61AVdraSZWOLpy+GY9RGRreH48s vkcHUyHPhVZ5Z7Pek2sn8AFbHFJ9+QEEyBdtkyv30s6kCMNASt+sWlAb6OUTXPVALidwLG 4f0xdRcmngkKYFGtWetZLjla866fU98x0a+E7qA0GA94Y0pWGErpvj9bhMOEM+KxCEw5u1 y0YpOu2M6XDZ0Yz413rKkd7AWM6k5oSF4qV0AntYbHc9lZ6iNcy2W9jI8FGsZLgL4igJdu yvilo+/sPeTtVkgBcciYtJYmiS7EsODWHxDDc77o5c0JjJxTl1Ku1jpCSd9ZiA== Received: from ltc.des.dev (unknown [91.174.26.112]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WYD0N5zHszLx7; Tue, 30 Jul 2024 11:44:20 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id ECA0E1E42B; Tue, 30 Jul 2024 13:44:18 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Poul-Henning Kamp" Cc: Gary Jennejohn , freebsd-current@freebsd.org, peter@freebsd.org Subject: Re: filemon In-Reply-To: <202407301049.46UAnrXX011101@critter.freebsd.dk> (Poul-Henning Kamp's message of "Tue, 30 Jul 2024 10:49:53 +0000") References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <202407301049.46UAnrXX011101@critter.freebsd.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 30 Jul 2024 13:44:18 +0200 Message-ID: <86o76f5ckt.fsf@ltc.des.dev> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Poul-Henning Kamp" writes: > Dag-Erling Sm=C3=B8rgrav writes: > > There is very little difference between options and devices in kernel > > configuration files, but for what it's worth, filemon is a device, not > > an option. > Apart from the internals of config(8) and it's input data, is there > any actual difference left ? From the perspective of including files in the build, there is no difference: `foo/foo.c optional foo` does not care whether "foo" is an option or a device. However, options generate macros, while devices don't. So adding `option FILEMON` to your kernel config will cause filemon to be compiled into the kernel, but it will also generate an unneeded opt_filemon.h with `#define FILEMON 1`. Or it would, if it weren't for this: % git annotate sys/conf/options |& grep -i filemon 6c6f1f0185b84 (Peter Wemm 2013-07-03 20:22:12 +0000 109)FILEMON opt_don= tuse.h which suggests Peter intended filemon to be an option rather than a device. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org