Commit Graph

52 Commits

Author SHA1 Message Date
pgoyette
f1af096dd8 Make explicit note that MODULE_CLASS_ANY should note be used as the
class of a MODULE().  MODULE_CLASS_ANY is intended only to indicate
a "wildcard" match when (auto)loading modules.
2019-04-07 22:32:10 +00:00
wiz
f43feba001 Grammar fix. 2019-01-27 17:44:02 +00:00
pgoyette
d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
pgoyette
b1b8d8175c The whole point of my recent addition of the specificdata(9) man page
was so it could be cross-referenced here.  So, add the xref.
2018-06-18 23:40:14 +00:00
pgoyette
56d0105401 Add missing .Fn mark-up 2018-06-15 22:40:33 +00:00
wiz
9a08b6a960 Whitespace fixes. 2018-06-15 15:14:15 +00:00
pgoyette
62ec288f8d Finish documenting the new modules(9) interfaces by adding the module
specificdata routines.
2018-06-03 10:34:59 +00:00
pgoyette
208f2b06f4 Also add new entries in the .Nm list, and update Makefile to actually
build the MLINKS
2018-06-03 01:52:47 +00:00
pgoyette
67554cc5bd Add documentation on the module_{,un}register_callbacks() routines.
XXX Still need to document the module_specificdata_* stuff, which
XXX needs to refer to a non-existent specificdata(9) man page!
2018-06-03 01:50:28 +00:00
pgoyette
4351800068 Partial update for new module interfaces. This update addresses the
new accessor functions and changes to module_hold() and module_rele(),
and fixes the prototype of each module's xxx_modcmd() function.

We still need updates related to the "specificdata" and callback
changes:

    specificdata_key_t module_specific_key_create(specificdata_key_t *,
						specificdata_dtor_t);
    void   module_specific_key_delete(specificdata_key_t);
    void   *module_getspecific(module_t *, specificdata_key_t);
    void   module_setspecific(module_t *, specificdata_key_t, void *);
    void   *module_register_callbacks(void (*)(struct module *),
	                                     void (*)(struct module *));
    void   module_unregister_callbacks(void *);

XXX The various functions listed in the man page should grouped into a
XXX few logical sub-sets.
2018-05-28 22:22:54 +00:00
wiz
d00a8be0d1 Fix xref. Remove unnecessary Tn. 2017-12-20 10:01:38 +00:00
pgoyette
5c1f1a6d42 Provide the real width of the MODULE_CLASS_xxx table's first column. 2017-12-20 03:24:56 +00:00
pgoyette
5c4820f072 Explicitly note that the required argument to the MODULE() macro is
a quoted string, or NULL.
2017-12-16 21:13:07 +00:00
pgoyette
9500538cdb Document the arguments to the MODULE() macro 2017-12-16 12:40:30 +00:00
pgoyette
7c6859f1a8 Minor tweaks, from Michael McConville 2015-10-04 22:51:19 +00:00
pgoyette
cadd54e581 Fix typo - from Kamil Rytarowski 2015-06-04 01:58:30 +00:00
wiz
08966c2e65 Sort sections. 2015-05-14 13:59:57 +00:00
pgoyette
a75c623ada Add a reference to the recently added module examples. 2015-05-13 22:31:16 +00:00
pgoyette
09f3122f4f Add the correct cross-ref, to intro(9lua) 2015-05-13 12:21:04 +00:00
pgoyette
09458121ad Note to self: if you're going to revert, do it right.
This should restore the original SEE ALSO section.
2015-05-13 10:49:26 +00:00
pgoyette
ec17d2b7e8 Revert revision 1.31 - the referenced page does not exist and I am not
qualified to write it!
2015-05-13 10:17:27 +00:00
pgoyette
ba5eaf4e0d Add an entry for lue(9lua) to the SEE ALSO list. 2015-05-13 09:04:38 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
jruoho
288ab9d2db Note that manually loaded modules are not auto-unloaded. 2011-10-18 14:12:04 +00:00
jym
b7e3c0fc0b Notify that the file system has to be mounted first before modules can
be loaded from it.

ok pgoyette@
2011-02-13 16:50:16 +00:00
jnemeth
20fdec7661 Update module_autoload to say that a .plist file will be loaded, and if
that .plist contains noautoload=true then the system will refuse to load
the module.
2011-01-09 05:05:10 +00:00
jruoho
91e230c6b8 Fix xref; module(4) -> module(7). 2010-12-14 16:23:59 +00:00
jruoho
05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
wiz
05859157e6 Remove boilerplate in CODE REFERENCES on file paths.
Describe in intro(9) how to read paths in the CODE REFERENCES section.
2010-12-02 12:54:13 +00:00
jnemeth
22405528a4 Rename the autoloaded property list from <module>.prop to <module>.plist
as discussed on tech-kern.
2010-11-28 00:26:38 +00:00
jnemeth
3a12eae410 note that MODULE_CLASS_SECMODEL is also automatically deregistered when being unloaded 2010-08-25 06:45:35 +00:00
jruoho
dfca43fdb9 Few small nits. 2010-08-24 05:34:15 +00:00
pgoyette
7626bd9b32 Put a valid date here - no more placeholder. 2010-08-21 13:34:43 +00:00
pgoyette
4a743ad47d Define a set of new kernel locking primitives to implement the recursive
kernconfig_mutex.  Update module subsystem to use this mutex rather than
its own internal (non-recursive) mutex.  Make module_autoload() do its
own locking to be consistent with the rest of the module_xxx() calls.
Update module(9) man page appropriately.

As discussed on tech-kern over the last few weeks.

Welcome to NetBSD 5.99.39 !
2010-08-21 13:17:31 +00:00
pgoyette
c6f8bef851 Note that, for MODULE_CLASS_SECMODEL, the class is not ignored. Rather,
we will automatically call secmodel_register() for these modules.
2010-08-18 01:56:45 +00:00
wiz
3ed879f06c filesystem -> file system 2010-08-17 06:44:25 +00:00
jnemeth
4de9b94cfd A few corrections:
- the return value from modcmd(MODULE_CMD_FINI) is not ignored;
  the module is only unloaded if the return value is 0
- if loading a module fails, the dependents won't be unloaded until
  the auto_unload timer goes off
- clarify that <module>.prop is merged with the dictionary passed
  in by modctl()
- clarify that other parts of the kernel shouldn't normally call
  module_unload()
- add some more source references and mention routines expected to
  be supplied by architecture dependent code
2010-08-17 04:09:07 +00:00
wiz
efa04f9763 Sort sections, remove trailing whitespace. 2010-08-14 17:49:12 +00:00
pgoyette
f385c3dade Add an Authors section 2010-08-14 17:06:58 +00:00
wiz
ffe6b7cdc1 We usually write "file system", so change it to this version here.
Also, fix a typo, and remove a line only consisting of ".Fn ".
2010-08-11 20:10:55 +00:00
pgoyette
7a8c7dc74a Add documentation for the various module system initialization routines. 2010-08-11 18:20:09 +00:00
wiz
032d0f9a13 Remove trailing whitespace, and mark up file name suffix. 2010-08-08 15:23:28 +00:00
pgoyette
f792e9e485 Filling in a few more gaps. 2010-08-08 14:26:22 +00:00
pgoyette
6241e2c44e Add documentation for module_find_section() 2010-08-07 22:21:30 +00:00
wiz
fe39a07b5f Fix typo. 2010-08-04 18:52:49 +00:00
jruoho
da5cba2978 Improvements to wording, grammar, and markup. 2010-08-04 05:51:20 +00:00
pgoyette
01a1e3e5d6 Unimplemented modcmd() routines should return ENOTTY, not zero. 2010-07-31 13:27:29 +00:00
pgoyette
fb03fbed90 Improve markup, add documentation for the module's modcmd() interface 2010-07-31 13:20:08 +00:00
pgoyette
4d71a95956 Crap - another typo. 2010-07-31 03:44:33 +00:00