summaryrefslogtreecommitdiff
path: root/sys/kern/kern_module.c
Commit message (Collapse)AuthorAgeFilesLines
...
* First stages of a module dependency cleanup. This part fixes aPeter Wemm1999-05-081-21/+33
| | | | | | | | | | | | | | | particularly annoying hack, namely having the linker bash the moduledata to set the container pointer, preventing it being const. In the process, a stack of warnings were fixed and will probably allow a revisit of the const C_SYSINIT() changes. This explicitly registers modules in files or preload areas with the module system first, and let them initialize via SYSINIT/DECLARE_MODULE later in their SI_ORDER_xxx order. The kludge of finding the containing file is no longer needed since the registration of modules onto the modules list is done in the context of initializing the linker file. Notes: svn path=/head/; revision=46693
* More -Wall / -Wcast-qual cleanup. Also, EXEC_SET can't useMatthew Dillon1999-01-291-3/+3
| | | | | | | | C_DECLARE_MODULE due to the linker_file_sysinit() function making modifications to the data. Notes: svn path=/head/; revision=43387
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-8/+8
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* Remove a diagnostic message left in by mistake.Doug Rabson1999-01-091-3/+2
| | | | Notes: svn path=/head/; revision=42439
* Implement a mechanism for a module to report a small amount of moduleDoug Rabson1999-01-091-2/+27
| | | | | | | | specific data back to the user via kldstat(2). Use that mechanism in the syscall handler to report the syscall number used. Notes: svn path=/head/; revision=42435
* put a \n on an error message printfPeter Wemm1998-11-061-2/+2
| | | | Notes: svn path=/head/; revision=40945
* *gulp*. Jordan specifically OK'ed this..Peter Wemm1998-10-161-2/+2
| | | | | | | | | | | This is the bulk of the support for doing kld modules. Two linker_sets were replaced by SYSINIT()'s. VFS's and exec handlers are self registered. kld is now a superset of lkm. I have converted most of them, they will follow as a seperate commit as samples. This all still works as a static a.out kernel using LKM's. Notes: svn path=/head/; revision=40435
* Keep track of the containing file for modules. This is a bit of a hack,Peter Wemm1998-10-101-7/+11
| | | | | | | | | | but I can't think of another (relatively) easy way of getting the info since the boot-time initialization is not done immediately after "loading". XXX module_register() gained an extra arg. This might break the alpha compile, if so, just add a zero to get the old behavior. Notes: svn path=/head/; revision=40158
* Send a MOD_UNLOAD event before deleting the module. if the MOD_LOAD eventDoug Rabson1998-10-031-1/+2
| | | | | | | failed. Notes: svn path=/head/; revision=39916
* Changed to the C9x draft spelling of the (unsigned) integral typeBruce Evans1998-07-141-3/+2
| | | | | | | | | | | suitable for holding object pointers (ptrint_t -> uintptr_t). Added corresponding signed type (intptr_t). Changed/added corresponding non-C9x types for function pointers to match. Don't use nonstandard types to implement these types, and don't comment on them in <machine/types.h>. Notes: svn path=/head/; revision=37629
* Fixed printf format errors.Bruce Evans1998-07-111-3/+4
| | | | Notes: svn path=/head/; revision=37555
* Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp1997-11-071-2/+1
| | | | | | | Found by: -Wunused Notes: svn path=/head/; revision=31016
* Move the "retval" (3rd) parameter from all syscall functions and putPoul-Henning Kamp1997-11-061-14/+15
| | | | | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled. Notes: svn path=/head/; revision=30994
* Removed unused #includes.Bruce Evans1997-10-281-2/+1
| | | | Notes: svn path=/head/; revision=30813
* make a couple functions static...John-Mark Gurney1997-10-241-3/+3
| | | | | | | | also change module_register_static to module_register_init as this function initalizes the module for both dynamic and static modules... Notes: svn path=/head/; revision=30683
* Removed unused #includes.Bruce Evans1997-08-021-3/+1
| | | | Notes: svn path=/head/; revision=27845
* This is the kernel linker. To use it, you will first need to applyDoug Rabson1997-05-071-0/+304
the patches in freefall:/home/dfr/ld.diffs to your ld sources and set BINFORMAT to aoutkld when linking the kernel. Library changes and userland utilities will appear in a later commit. Notes: svn path=/head/; revision=25537