Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1738769rwi; Mon, 31 Oct 2022 22:10:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mjWVE/oNABedE08WRAwxwmDwbsSJ1nV1/aCuevHgaq2UQZdBjKtvu8zXjj/ZYPVWgehTi X-Received: by 2002:a17:907:a0e:b0:780:72bb:5ce4 with SMTP id bb14-20020a1709070a0e00b0078072bb5ce4mr16866239ejc.234.1667279429192; Mon, 31 Oct 2022 22:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667279429; cv=none; d=google.com; s=arc-20160816; b=s79eVZlRR0JwPWrC6g4UdLsiWxNJ1w/PMxAAPOfLSUxlRx4D0uIkV7+LBEtSXWs812 VHdstDUAsx+7ewAQK5dqnITc6ofC2WOhwoS0PmLneJyCC7utD5AiB6fbc75ClImIRfs2 Bpjb1EK8PlUnGfWzQaOXpSMtzoxw8Dxp03t5mMakmBmH0BZ/Wrl9Q1p0b7ICGbHz1nW+ f/v79zSKF20z5VDC8M9/Mm7WoVAKl5yiXoXzLGAPJft1sRrFQzbTsuL/9VZ5bwHHtYgm Rdw/FDGP8PEdFELBA8MXdJ5/3vqwFLPYNY3B97TzwBZiBSxuhOWkkVWF/AxdIhkcaaVK 7PPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:jabber-id:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=U8kF6lBmgcKMrE81ESz1+R8PIsImEzBxDNhLhj+osmw=; b=GTwjfB5XBdPeYoQ/ief4E+UahfH/pRM61x/OmWal1lIOkChN4qkPjdx3KgV4cYlvoD 0dnuDKOKpojwDOK4XmWBpZh8Vgh/zfdhdoYcx7OZKmgNASEWZ0ZcBswPo1yGldoKzbfU EaB4DYBlLnsrPzr8KCFQ3ggZeWLo/Xj3pLksxD9/tjBfC5Xf5nIDFEjWFzHDtodr/0pA 8SXgJzi+Bj+08G0TDifm6l1wFiiyJWvTtip0PHtnSekCJyyGLL82fIaJavp3TCduG535 Hd/RbdrwK2bqPMlCST7u00ni9VomkuihJHpP1ES4IrOMKGvzx+hXHe/mfLuXzEVD28Wj f96w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=VYWrKe0S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa38-20020a17090786a600b0078c4a772ea7si12042037ejc.11.2022.10.31.22.10.05; Mon, 31 Oct 2022 22:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=VYWrKe0S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbiKAEmq (ORCPT + 97 others); Tue, 1 Nov 2022 00:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiKAEmp (ORCPT ); Tue, 1 Nov 2022 00:42:45 -0400 X-Greylist: delayed 13913 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 31 Oct 2022 21:42:43 PDT Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF75815704; Mon, 31 Oct 2022 21:42:43 -0700 (PDT) Date: Tue, 1 Nov 2022 05:42:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1667277761; bh=e9z0cElkVGMTLnQzPC9CHfMFa2dDT0eoWbLJwxOR+sE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VYWrKe0SvzIM0tLIk8qEyUaAG6jvI2FywxbcT4qO0PQ86GqhyjT4vIsMAR8rZGEZA mvmzBXwUybDHCJsu0eua6QxXNQ0pFWIlzYyJvbr72Qi8p37T7x1cikhAEuGjwbhUQR cMXvQ60dkUvCDckDbbvxjD7rOfQ/3W2cVBzbCV3o= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Greg KH Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Karel Zak , Masatake YAMATO , linux-api@vger.kernel.org Subject: Re: [PATCH] proc: add byteorder file Message-ID: References: <20221101005043.1791-1-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Jabber-ID: thomas@t-8ch.de X-Accept: text/plain, text/html;q=0.2, text/*;q=0.1 X-Accept-Language: en-us, en;q=0.8, de-de;q=0.7, de;q=0.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-11-01 05:34+0100, Greg KH wrote: > On Tue, Nov 01, 2022 at 01:50:43AM +0100, Thomas Weißschuh wrote: > > Certain files in procfs are formatted in byteorder dependent ways. For > > example the IP addresses in /proc/net/udp. > > > > Assuming the byteorder of the userspace program is not guaranteed to be > > correct in the face of emulation as for example with qemu-user. > > > > Also this makes it easier for non-compiled applications like > > shellscripts to discover the byteorder. > > > > Signed-off-by: Thomas Weißschuh > > Why not put this in /sys/kernel/ instead? What does this have to do > with /proc/ other than it's traditionally been the dumping ground for > stuff like this? :) The main reason to put it in /proc was because the data it helps to interpret is also in /proc. But /sys/kernel looks good, too. I'll change it to that.