On Sat, 26 Apr 2008 15:56:26 +1000
AnĂbal Monsalve Salazar <[EMAIL PROTECTED]> wrote:
> ...So, for pcimodules, intel-agp comes
> from /lib/modules/2.6.18-4-686/modules.pcimap on my laptop.
>
> As for lsmod, I don't know. Sorry.
After reading your message the other day I discovered:
% man modprobe | grep -m 1 -n -C 1 _
21- modprobe intelligently adds or removes a module from the
Linux kernel:
22: note that for convenience, there is no difference between
_ and - in
23- module names. modprobe looks in the module directory
/lib/mod-
It's not mentioned in the man pages for 'lsmod' or 'modinfo', yet.
A "convenient" kludge for kernel guys presumably, but it breaks *nix
custom of unique character meanings. 'grep' users take note: you gotta
use a character class (or '.' and risk a false hit) to parse these
utils outputs now:
# fails
% lsmod | grep 'via-agp' ; echo $?
1
# works
% lsmod | grep 'via[_-]agp'
via_agp 9952 1
agpgart 31688 3 nvidia,drm,via_agp
# fails
% pcimodules | grep 'via_agp' ; echo $?
1
# works
% pcimodules | grep 'via[_-]agp'
via-agp
HTH...
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]