Re: Linking a devices with a module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Gerrard-
What do you see in dmesg? In my case, I tend to use dmesg as the source. For
example, my array is ida/<whatever> - so, I look in dmesg and grep for
'ida', in which I find:

cpqarray: Finding drives on ida0 (Integrated Array)
cpqarray ida/c0d0: blksz=512 nr_blks=35553120
cpqarray: Starting firmware's background processing
 ida/c0d0: p1 p2

Now we know it's using cpqarray. To get further information (ie: confirm the
module is loaded):

# lsmod | grep cpqarray
cpqarray               23845  3

I can then look in /proc/driver/cpqarray and see info about the devices
using it, for example:

[root@casey sections]# cat /proc/driver/cpqarray/ida0
ida0:  Compaq Integrated Array Controller
       Board ID: 0x40400e11
       Firmware Revision: 1.42
       Controller Sig: 0xa5520902
       Memory Address: 0xf8814000
       I/O Port: 0x2000
       IRQ: 177
       Logical drives: 1
       Physical drives: 2

       Current Q depth: 0
       Max Q depth since init: 113

Logical Drive Info:
ida/c0d0: blksz=512 nr_blks=35553120
nr_allocs = 2762299
nr_frees = 2762299

Between dmesg, looking through /sys and /proc, and using lsmod and modinfo,
you should hopefully end up having a pretty good idea about your device and
what module is being loaded for it.

For example,
# modinfo cpqarray

will dump out lots about the cpqarray module.

Hope this helps! If it doesn't, feel free to send over your (probably long)
dmesg output and let's see if we can help you out a little more.

Take care!

Chet


On Wed, Apr 30, 2008 at 11:52 AM, Gerrard Geldenhuis <
Gerrard.Geldenhuis@xxxxxxxxxxxx> wrote:

> Hi
>
> How do I determine which kernel modules sits behind a device.
>
>
>
> The storage for HP servers is handled by cciss but is there a way to
> "query" a device to ascertain this?
>
>
>
> dmesg is helpful but not really conclusive...
>
>
>
> Regards
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjectunsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
/*
Chet Nichols III
mail: chet.nichols@xxxxxxxxx
(aim: chet / twitter: chet)
*/
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux