From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RCtwQ-0005e5-Ap for garchives@archives.gentoo.org; Sun, 09 Oct 2011 14:01:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2644621C387; Sun, 9 Oct 2011 14:01:14 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id DD66D21C200 for ; Sun, 9 Oct 2011 13:59:46 +0000 (UTC) Received: by gyd10 with SMTP id 10so6736891gyd.40 for ; Sun, 09 Oct 2011 06:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Dh+0KG72Ky2vUfFDsPMaY7S9Jv+aLueff9+n8RU4RNk=; b=jH29dlFsnKP8tr1CD8vKRw3IiX/E6KtapJXT8PfGR4HbEb3qBlOGTC0mRTy4K/r/GH dRBsMnIZBSoiPpxBWcHaIRDrdy+SMTLGgYAFh1QjnxConk6YAaGKAtigYeumZ+kosRkz MTksDHkvuvj7CtxiCsHJS3LO7xUf0tSxGdo5w= Received: by 10.236.185.195 with SMTP id u43mr19308402yhm.43.1318168786404; Sun, 09 Oct 2011 06:59:46 -0700 (PDT) Received: from [192.168.2.5] (adsl-98-95-215-244.jan.bellsouth.net. [98.95.215.244]) by mx.google.com with ESMTPS id j13sm43237231ani.19.2011.10.09.06.59.44 (version=SSLv3 cipher=OTHER); Sun, 09 Oct 2011 06:59:45 -0700 (PDT) Message-ID: <4E91A8CF.9090105@gmail.com> Date: Sun, 09 Oct 2011 08:59:43 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111002 Firefox/7.0.1 SeaMonkey/2.4.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Anyone can afford information about build kernel? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 2404148b716b437ed916a41e0ab6f999 Michael Mol wrote: > On Sun, Oct 9, 2011 at 9:30 AM, Michael Mol wrote: >> On Sun, Oct 9, 2011 at 12:53 AM, Lavender<448463782@qq.com> wrote: >>> Yeah, your reply is exact what I mean , but I'm really confused by those >>> modules' names, I can't find any contact between the hard device name and >>> its module name . For example, there is a module named 3c59x.ko , I totally >>> don't know what device it present for , >> This got a *lot* easier back when sysfs was added. >> >> cd /sys/module//drivers/ >> >> And go from there >> >> lspci will help you see the 'text' name for the device in question. >> >> For example, let's say I don't know what the 'ahci' module is for. >> >> $ cd /sys/module/ahci/drivers >> $ ls >> pci:ahci >> $ cd pci\:ahci/ >> $ ls >> 0000:00:11.0 bind module new_id remove_id uevent unbind >> $ sudo lspci|grep 11.0 >> 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA >> Controller [AHCI mode] >> $ >> >> So now I know the ahci module manages my SATA controller. > Came up with something possibly a little handier. This command should > tell you what driver is associated with every device on the system. > > find /sys/devices -name driver -print0|xargs -0 ls -l|cut -d' ' > -f10-|sed -e 's/\.\.\///g' > > Output could probably still be a bit better cleaned up, but it should help. > Let's not fail to mention lspci -k either. That is a handy tool. Dale :-) :-)