l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jun 18 14:52

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Question about listing loaded modules by process...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Question about listing loaded modules by process...

Okay, here is what I'm getting at. Sorry for being unclear.

Say I have a program which plays an audio file. It asks the operating 
system to access the sound card device. If the device driver is compiled 
as a module, the OS requires the module be loaded into memory before the 
sound card can be accessed. For example, say I have a SB16, so I need sb.o 
loaded into memory (and all the dependant modules as well, a la "modprobe 
-r sb").

While the process has this "resource" open (may I refer to it as a
resource?), the module must remain in memory. A "modprobe -r sb" returns
"sb: Device or resource busy." If I can locate the process which is
accessing the sound device (say, for example, "play RMSSings.wav"), and
kill it ("killall play"), I can then do a "modprobe -r sb" successfully.

Suppose I don't know that I have "play" running in the background, or
which programs really are causing the "sb.o" module to remain in memory.  
Isn't there a program out there, a la lsmod and lsof, which allows me to
list what processes are requiring the use of what OS device modules? In
other words, to list out the fact that "play" has "sb.o" locked into

Does this make more sense, guys? :-)

On Thu, 13 Jun 2002, Jeff Newmiller wrote:

> On Thu, 13 Jun 2002, R. Douglas Barbieri wrote:
> > Hello all,
> > 
> > I came across a command a while ago which allowed me to see which 
> > processes had what modules loaded. I can't for the life of me remember 
> > what it is! Anyone know?
> Your terminology is confusing.  We don't usually refer to processes
> loading modules, since modules are kernel drivers.  Processes may open
> device files (see "lsof"), and may dynamically link with shared objects
> ("ldd").
> Actually, Apache supports a different kind of "module"... but I don't know
> how to see which ones are loaded.
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
> ---------------------------------------------------------------------------
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

R. Douglas Barbieri

"That government is best which governs the least, because its people
   discipline themselves."

-- Thomas Jefferson

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.