Return-path: Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:48700 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753521Ab2ACAei (ORCPT ); Mon, 2 Jan 2012 19:34:38 -0500 Date: Tue, 3 Jan 2012 00:35:08 +0000 From: Alan Cox To: Jack Stone Cc: Linus Torvalds , Alan Stern , Oliver Neukum , Matthew Garrett , Dave Jones , Linux Kernel , Larry Finger , Chaoming Li , "John W. Linville" , Greg Kroah-Hartman , USB list , Linux Wireless List Subject: Re: loading firmware while usermodehelper disabled. Message-ID: <20120103003508.726f5482@pyramind.ukuu.org.uk> (sfid-20120103_013455_068841_E8AFDEC2) In-Reply-To: <4F022214.8070906@fastmail.fm> References: <4F02165C.1060400@fastmail.fm> <4F0219AB.6010505@fastmail.fm> <4F021CF4.9050205@fastmail.fm> <4F022214.8070906@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-wireless-owner@vger.kernel.org List-ID: > To make the firmware caching easier I would propose one extra function > in addition to the aforemensioned get_firmware / put_firmware - a > find_firmware function to search the cache and return the appropriate > firmware blob. If the caller has a recount they have a pointer. If the caller can't work out how to assign a 32bit value to a field in a struct please get them to work on something less important than kernel code. Alan