Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1736587rwi; Mon, 31 Oct 2022 22:08:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vymdwjiEZ1gAUmobLcqAEf5fG92eItx/MRzA4EUtrAqQ+2bXuV1qX+QA6PR5YmJ01BPN1 X-Received: by 2002:a05:6402:174f:b0:463:12ed:3f8f with SMTP id v15-20020a056402174f00b0046312ed3f8fmr14725562edx.67.1667279313979; Mon, 31 Oct 2022 22:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667279313; cv=none; d=google.com; s=arc-20160816; b=JWsZD8skqkq+rDcPg6I6RwpgwfyEy5O1WtoqHrefIOzKcFDzxHawDTNJfMWAXN7siU 1Lxhkc3hXy7i5Nah6NgMNHH4JbXIQgUck+gzVunQy5cZQzeSacJ0I/M+SJ6BR8BnX2PD Ivy+Pq227uEgvW9vvIbfeItAhI4W3IWv859/hgAxvBf7UPQofg0ycHFNbllLeYSIQdnO N4Z7Ul/6bUnGS9WkpWs1aCykCgsLjnQ0Px+mcyXCTaopm0ngZmpjX9KBrHzZSzXvkAqa WG6ufFWmlOelHCWSdaM5hjdP4uuPFflm/H/T63suizbmoIefE11NI6no5T+bGdxbYVUN bCng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZuRjcD6Q7t/AYGckNy+6xPmyyrfM6S0ILAmsyApK8DY=; b=obRY6xfvJcQbwgPU0iktY+23/u8XA1Ft2//o6nyN73waQhtNu9f2fF9RYx+G/OBsxN OKWVQLRtXgxNpx9Eg8WCyxFw86PUkcKHD/lA0dIPcFvnVQZBRXingFO3YOSsc1lg5Nx1 fJiK7IKtnOWnXM3sz3xFMk7EC4I/5FjgrQbClLmF1xA2BfDiq6DeeNgNaNegqxmRufmN MIr4etMUDEb8N04N8B1zbrlQZ2dOuaKCBk4HVvzbfc55FXl+/7e1LoalTPTmQSFTSDua 057CdUwJqD/yoSvNT3WQSXlIZiQhvPUekxGcKRsMDPxO+yzx5j7+QsgXbfzyTqjrQIIw XhsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SO9YmAED; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn19-20020a17090794d300b007824786a7easi11434071ejc.724.2022.10.31.22.08.04; Mon, 31 Oct 2022 22:08:33 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=SO9YmAED; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbiKAEdY (ORCPT + 97 others); Tue, 1 Nov 2022 00:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKAEdW (ORCPT ); Tue, 1 Nov 2022 00:33:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7294384; Mon, 31 Oct 2022 21:33:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2E0E860F72; Tue, 1 Nov 2022 04:33:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DE2CC433D6; Tue, 1 Nov 2022 04:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667277200; bh=S6J6gnx37ncA0g8KRYAs0JwCn4toE/be+QwSrIPnqQU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SO9YmAEDID2KF10xGyqYOVrKWDXo4LusNHXlBf6l7nTk6KwAKJzlCxn8Fvx+J6ccp lXDKy/i1UXaGErldQn0eY0zmYow4MA/+JH2xlMS5Gq0d/XqbPym5WEiLc1R0TdOwb0 9J6KT1K2aD/sc3O0IZ/gNa2qQa3dABcOzaK2WWIM= Date: Tue, 1 Nov 2022 05:34:07 +0100 From: Greg KH To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221101005043.1791-1-linux@weissschuh.net> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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? :) thanks, greg k-h