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...

R. Douglas Barbieri wrote:
> 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
> memory?
> Does this make more sense, guys? :-)

     fuser -v *
will tell which files or filesystems are held by 
which process, or if the kernel is the 'holder'.

I believe that the moment is near when by a procedure of
active paranoiac thought, it will be possible to systematize
confusion and contribute to the total discrediting of the
world of reality.       -- Salvador Dali
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:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.