Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user@g.o
From: Joshua Murphy <poisonbl@...>
Subject: Re: list of kernel modules
Date: Fri, 6 Apr 2012 10:43:35 -0400
On Fri, Apr 6, 2012 at 10:02 AM, András Csányi <sayusi.ando@...> wrote:
> Dear All,
>
> I'm a little bit confused regarding modprobe command. As far as I
> remember I used the command below to list all of kernel modules
> independently it's loaded or not.
> modprobe -l or modprobe -L
>
> But now I can see that there is no -l or -L for this command. When
> have changed this command or my memories are failed? On the other
> hand, I would like to ask that how can I list all of kernel modules?
>
> Thanks in advance!
>
> András
>
> --
> --  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> --  ""Trust in God and keep your gunpowder dry!" - Cromwell

From 'man modprobe' here (module-init-tools version 3.16):
    -l --list
    List all modules matching the given wildcard (or "*" if no
wildcard is given).  This option is provided for backwards
compatibility and  may go away in future: see find(1) and basename(1)
for a more flexible alternative.


And, found this handy little 'replacement' of sorts (in .bashrc or
such, not tested by me):

fkm() {
  local kver=$(uname -r) arg=${1//[-_]/[-_]}
  find "/lib/modules/$kver" -iname "*$arg*.ko*" \
    -exec bash -c 'mods=("${@##*/}"); printf "%s\n" "${mods[@]%.ko*}"' _ {} +

  if [[ ! -e /lib/modules/$kver/kernel ]]; then
    echo "reboot!" >&2
  fi
}

(source: https://bbs.archlinux.org/viewtopic.php?id=134393 )

-- 
Poison [BLX]
Joshua M. Murphy


Replies:
Re: list of kernel modules
-- András Csányi
References:
list of kernel modules
-- András Csányi
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: list of kernel modules
Next by thread:
Re: list of kernel modules
Previous by date:
Re: list of kernel modules
Next by date:
Re: list of kernel modules


Updated May 04, 2012

Summary: Archive of the gentoo-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.