04-14-2004
Dynamically loading a module
Hi there:
Thanks for clicking in first. I have a question here. I have a module that needs to be dynamically loaded when another piece of code needs it at runtime. I know that I will have to make a soname file before I can use it dynamically. My question is what commad I should use to make module.c into a module.so.
Thank you very much!
10 More Discussions You Might Find Interesting
1. HP-UX
HI,
I am dynamically loading shared libraries using shl_load(). There are multiple processes (50 or more) which loads the same shared library. Will Unix internally load only one copy of the shared library or it will load multiple copies.
Can I have memory issues if this is done.
Thanks,... (1 Reply)
Discussion started by: Debasisb2002
1 Replies
2. Shell Programming and Scripting
Like class loader in java, can we make a function loader in shell script, for this can someone throw some light on how internally bash runs a shell script , what happenes in runtime ...
thanks in advance.. (1 Reply)
Discussion started by: mpsc_sela
1 Replies
3. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
4. Linux
Hi masters,
I am new to linux and unix forum and this is my first forum. So please excuse if
I am not giving sufficient information. I will give them on request.
I have created a bandwidth manager module. I am using a 2.6.9 kernel and in Red Hat 3.4.3 distribution. But when i run make... (1 Reply)
Discussion started by: iamjayanth
1 Replies
5. Shell Programming and Scripting
Hi,
I have a strange issue in my script.
When script is run from command prompt it runs fine,but when run from cron it exist with error message.
I narrowed down the issue and found that " use Mail::Sender;" is the culprit.
If I comment the statment the code runs fine in both command and... (9 Replies)
Discussion started by: coolbhai
9 Replies
6. Solaris
Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies
7. UNIX for Advanced & Expert Users
I'd like to install cpufreq modules on my server .
I tried
sudo modprobe acpi-cpufreq
but got the error
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.18-238.12.1.el5xen/kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko): No such device
cat /proc/cpuinfo gives this
... (11 Replies)
Discussion started by: vishwamitra
11 Replies
8. Red Hat
Hello friends
Today i have changed my passwd policy for strong password
Everything is working correctly but when i changed my password , it did not ask me my old password
my /etc/pam.d/system-auth file is (only passwdqc.so module line)
password required pam_passwdqc.so retry=3... (0 Replies)
Discussion started by: rink
0 Replies
9. Fedora
Well, I followed the steps in the Debian wiki here to install the drivers for the following video card:
$ lspci | grep VGA
03:00.0 VGA compatible controller: NVIDIA Corporation GF104 (rev a1)I confirmed the correct driver is installed. As you probably see I've tried this a few times and a few... (1 Reply)
Discussion started by: Azrael
1 Replies
10. UNIX for Dummies Questions & Answers
Hi everyone,
I have a problem but I have never installed a separate OS before so my lingo and understanding may not be as good as some of you. I will try and explain my problem best I can. I am trying to instead of loading Windows 7 when my computer starts up, for it to start linux specifically... (2 Replies)
Discussion started by: markhow30
2 Replies
LEARN ABOUT FREEBSD
module_depend
MODULE_DEPEND(9) BSD Kernel Developer's Manual MODULE_DEPEND(9)
NAME
MODULE_DEPEND -- set kernel module dependencies
SYNOPSIS
#include <sys/param.h>
#include <sys/module.h>
MODULE_DEPEND(name, moddepend, int minversion, int prefversion, int maxversion);
DESCRIPTION
The MODULE_DEPEND() macro sets a dependency on another kernel module with name moddepend, which has registered its version with
MODULE_VERSION().
The MODULE_DEPEND() macro provides hints to the kernel loader(8) and to the kernel linker to ensure that the named dependency is loaded prior
to the existing module. It does not change or dictate the order in which modules are initialized at runtime.
Three versions must be specified for moddepend:
minversion The minimum version on which the current module can depend.
maxversion The maximum version on which the current module can depend.
prefversion The preferred version on which the current module can depend.
EXAMPLES
MODULE_DEPEND(foo, bar, 1, 3, 4);
SEE ALSO
DECLARE_MODULE(9), module(9), MODULE_VERSION(9)
AUTHORS
This manual page was written by Alexander Langer <alex@FreeBSD.org>.
BSD
January 11, 2005 BSD