Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754622AbbK0TwE (ORCPT ); Fri, 27 Nov 2015 14:52:04 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:35547 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726AbbK0TwB (ORCPT ); Fri, 27 Nov 2015 14:52:01 -0500 Date: Fri, 27 Nov 2015 19:51:48 +0000 From: Russell King - ARM Linux To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: "devicetree@vger.kernel.org" , Ivaylo Dimitrov , Laura Abbott , Arnd Bergmann , Tony Lindgren , Sebastian Reichel , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , Pavel Machek , Grant Likely , linux-omap@vger.kernel.org, Frank Rowand , Andreas =?iso-8859-1?Q?F=E4rber?= , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 5/5] arm: boot: store ATAGs structure into DT "/chosen/linux,atags" entry Message-ID: <20151127195148.GB30871@n2100.arm.linux.org.uk> References: <20150713131902.GH26485@atomide.com> <20151123144545.GD24147@pali> <20151125181644.GI2517@atomide.com> <17134653.86P3dFyQKK@wuerfel> <20151125210310.GT2517@atomide.com> <56568849.5080103@gmail.com> <20151126090739.GD14190@pali> <20151127132722.GA30871@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151127132722.GA30871@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 24 On Fri, Nov 27, 2015 at 01:27:23PM +0000, Russell King - ARM Linux wrote: > It is possible to redirect any program to open any other file. You can > do it via a LD preload, and intercepting the open(), and possibly the > read() calls if you want to do something more fancy. The down-side is > that you have to arrange for the preloaded object to be used by the > linker, and the additional overhead it places on the intercepted > functions. Another idea if people don't like the preload idea. We could create a zero-sized /proc/atags, and then use a bind mount in userspace to bind some other file containing the required information on top. That could even be the atag blob from /sys/firmware/whatever. The N700 (or whatever platform needs it) could be responsible for creating the zero-sized /proc/atags so that we don't have it everywhere. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/