Received: with ECARTIS (v1.0.0; list netdev); Mon, 31 Jan 2005 11:52:28 -0800 (PST) Received: from cheetah.davemloft.net (mail@adsl-63-197-226-105.dsl.snfc21.pacbell.net [63.197.226.105]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j0VJqMMZ021584 for ; Mon, 31 Jan 2005 11:52:22 -0800 Received: from localhost ([127.0.0.1] helo=cheetah.davemloft.net ident=davem) by cheetah.davemloft.net with smtp (Exim 3.36 #1 (Debian)) id 1CvhVR-00078q-00; Mon, 31 Jan 2005 11:46:41 -0800 Date: Mon, 31 Jan 2005 11:46:40 -0800 From: "David S. Miller" To: Martin Wilck Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com Subject: Re: SIOCGIFMAP silently broken? Message-Id: <20050131114640.7e002652.davem@davemloft.net> In-Reply-To: <41FE4745.4020003@fujitsu-siemens.com> References: <41FE4745.4020003@fujitsu-siemens.com> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; sparc-unknown-linux-gnu) X-Face: "_;p5u5aPsO,_Vsx"^v-pEq09'CU4&Dc1$fQExov$62l60cgCc%FnIwD=.UF^a>?5'9Kn[;433QFVV9M..2eN.@4ZWPGbdi<=?[:T>y?SD(R*-3It"Vj:)"dP Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 1116 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: davem@davemloft.net Precedence: bulk X-list: netdev Content-Length: 506 Lines: 13 On Mon, 31 Jan 2005 15:57:09 +0100 Martin Wilck wrote: > In both cases, the netdev->irq field isn't used anymore; perhaps it > should be officially deprecated and/or removed? It is used for explicitly setting the IRQ value on hardware where doing so automatically via probing may not be %100 reliable, such as on ISA. Another way to do what you're trying to do is to look for the string name of the device you are interested in within the output of /proc/interrupts.