From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH 5/5] arm: boot: store ATAGs structure into DT "/chosen/linux,atags" entry Date: Fri, 27 Nov 2015 19:51:48 +0000 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 Return-path: Content-Disposition: inline In-Reply-To: <20151127132722.GA30871-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Ivaylo Dimitrov , Laura Abbott , Arnd Bergmann , Tony Lindgren , Sebastian Reichel , Will Deacon , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Pavel Machek , Grant Likely , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Frank Rowand , Andreas =?iso-8859-1?Q?F=E4rber?= , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org 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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html