MODULE_VERSION(9) BSD Kernel Developer's Manual MODULE_VERSION(9)NAME
MODULE_VERSION -- set kernel module version
SYNOPSIS
#include <sys/param.h>
#include <sys/module.h>
MODULE_VERSION(name, int version);
DESCRIPTION
The MODULE_VERSION() macro sets the version of the module called name. Other kernel modules can then depend on this module (see
MODULE_DEPEND(9)).
EXAMPLES
MODULE_VERSION(foo, 1);
SEE ALSO DECLARE_MODULE(9), module(9), MODULE_DEPEND(9)AUTHORS
This manual page was written by Alexander Langer <alex@FreeBSD.org>.
BSD March 11, 2001 BSD
Check Out this Related Man Page
MODULE(9) BSD Kernel Developer's Manual MODULE(9)NAME
module -- structure describing a kernel module
DESCRIPTION
Each module in the kernel is described by a module_t structure. The structure contains the name of the device, a unique ID number, a pointer
to an event handler function and to an argument, which is given to the event handler, as well as some kernel internal data.
The DECLARE_MODULE(9) macro registers the module with the system.
When the module is loaded, the event handler function is called with the what argument set to MOD_LOAD.
On unload it is first called with what set to MOD_QUIESCE. If the unload was not forced, a non-zero return will prevent the unload from hap-
pening.
If the unload continues what is set to MOD_UNLOAD. If the module returns non-zero to this, the unload will not happen.
The difference between MOD_QUIESCE and MOD_UNLOAD is that the module should fail MOD_QUIESCE if it is currently in use, whereas MOD_UNLOAD
should only fail if it is impossible to unload the module, for instance because there are memory references to the module which cannot be
revoked.
When the system is shutting down, what contains the value of MOD_SHUTDOWN.
The module should return EOPNOTSUPP for unsupported and unrecognized values of what.
EXAMPLES
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/module.h>
static int foo_handler(module_t mod, int /*modeventtype_t*/ what,
void *arg);
static moduledata_t mod_data= {
"foo",
foo_handler,
NULL
};
MODULE_VERSION(foo, 1);
MODULE_DEPEND(foo, bar, 1, 3, 4);
DECLARE_MODULE(foo, mod_data, SI_SUB_EXEC, SI_ORDER_ANY);
SEE ALSO DECLARE_MODULE(9), DEV_MODULE(9), DRIVER_MODULE(9), MODULE_DEPEND(9), MODULE_VERSION(9), SYSCALL_MODULE(9)
/usr/share/examples/kld
AUTHORS
This manual page was written by Alexander Langer <alex@FreeBSD.org>.
BSD July 19, 2007 BSD
Hi all
I am trying to document my entire system (hardware/software/admin) Is there a template I could use for the purpose. This document will be the used by all System admins/ Management the company when they want to find out anyting about any of the servers we manage.
If there is no such... (6 Replies)
I have Apache 2 webserver as delivered with the Solaris 10 installation.
How to verify if Apache is configured with loadable module support?
Or if needs to be recompiled with loadable module support. (2 Replies)
Hi, new here and need some help. Sometimes my site is extremely slow, if when there aren't too many people on, whereas when there are over 300 online members the site may be very fast. We use CentOS, PHP 5.26. The server has 4GB and Plesk usually shows about 2 or 3 GB free.
I believe I can see... (4 Replies)
ok, right off the bat im going to say this, i know that there is about over 100 links on google for this, just none of them help me. i have a radeon mobility 7500 graphics card. and i want to enable the compiz effects via Administration/preferences/Appearance. the problem is that i can't get the... (12 Replies)
Hi,
Installed it and all seems okay except when I try to actually use it. :-(
Visiting my nagios url, it says
Logs and conf's follow:
nagios.log is:
# cat /usr/local/nagios/var/nagios.log | tail -5
Successfully shutdown... (PID=3613)
Nagios 3.2.2 starting... (PID=4645)... (7 Replies)
Is it possible to ssh to a server in perl and execute multiple commands without doing them all at once?
I know I can potentially do something like
system( 'ssh user@server "cd directory; grep blah *; curl someurl.com"');
However, I'd like the functionality where I don't have to keep SSHing... (3 Replies)
Hi people,
Hoping someone has maybe done this before?
I'm trying to run fmadm from the xcsf prompt on an M4000 and it won't run, complaining about insufficient privileges, even though the user has supposedly been setup with fieldeng privileges.
Anyone got any ideas?
Cheers
Rgrds... (10 Replies)
I'm having trouble getting my WIFI card to work. It's Device ID is :0c:00.0 0280: 14e4:4315 (rev 01). My OS is BT5. The card works with Lucid just fine. I've gone to the Hardware drivers to try and download it but when I try I always get this:
SystemError: installArchives()failedI've gone to... (2 Replies)
I have Fedora 16 + LXDE + old NVIDIA Quadro FX 570.
I updated a bunch of packages last night (see list at the bottom), installed new kernel also (3.4.4),
then updated the proprietary NVIDIA driver, and after booting back into X, the keyboard is remapped wildly.
Pretty much all the keys are... (1 Reply)
I recently required some Sun Oracle Netra T5220s. I do not have much knowledge of Sun products.
The units do not have video cards or hard drives. How can I tell/go about figuring out what clock speed and how many cores the processor is?
They are all outfitted with 32GB of memory. Two are... (11 Replies)
I compiled apache 2.2.15 from source and installed it. When I try to start it, its not coming up.
# ./httpd -k start
# echo $?
1
# ps -ef | grep httpd | grep -v grep
#
# ./httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Dec 13 2013 04:31:41When I run it in gdb I am... (4 Replies)
Not quite sure how to explain what I need to do (or how to title the post!) so will try and show it!
Basically I have a list of 'modules' which takes the form seen below, where there can be a module name, module type and module version (a module may not have each of those and could in theory... (2 Replies)
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)
I don't know to debug the program todaylive.pl program.
plz someone let me know what are the commands I need to know to debug the perl programs to find out the error on it. (3 Replies)