The
DEV_MODULE ();
macro declares a device driver kernel module.
It fills in a
Vt moduledata_t
structure and then calls
DECLARE_MODULE ();
with the correct args, where
Fa name
is the name of the module and
Fa evh
(with its argument
Fa arg )
is the event handler for the module (refer to
DECLARE_MODULE9
for more information).
The event handler is supposed to create the device with
make_dev ();
on load and to destroy it when it is unloaded using
destroy_dev (.);