Deleted Added
full compact
kern_module.c (142067) kern_module.c (157818)
1/*-
2 * Copyright (c) 1997 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include "opt_compat.h"
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include "opt_compat.h"
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/kern/kern_module.c 142067 2005-02-18 22:14:40Z ps $");
30__FBSDID("$FreeBSD: head/sys/kern/kern_module.c 157818 2006-04-17 19:44:44Z jhb $");
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/systm.h>
35#include <sys/eventhandler.h>
36#include <sys/malloc.h>
37#include <sys/sysproto.h>
38#include <sys/sysent.h>

--- 220 unchanged lines hidden (view full) ---

259void
260module_setspecific(module_t mod, modspecific_t *datap)
261{
262
263 MOD_XLOCK_ASSERT;
264 mod->data = *datap;
265}
266
31
32#include <sys/param.h>
33#include <sys/kernel.h>
34#include <sys/systm.h>
35#include <sys/eventhandler.h>
36#include <sys/malloc.h>
37#include <sys/sysproto.h>
38#include <sys/sysent.h>

--- 220 unchanged lines hidden (view full) ---

259void
260module_setspecific(module_t mod, modspecific_t *datap)
261{
262
263 MOD_XLOCK_ASSERT;
264 mod->data = *datap;
265}
266
267linker_file_t
268module_file(module_t mod)
269{
270
271 return (mod->file);
272}
273
267/*
268 * Syscalls.
269 */
270/*
271 * MPSAFE
272 */
273int
274modnext(struct thread *td, struct modnext_args *uap)

--- 219 unchanged lines hidden ---
274/*
275 * Syscalls.
276 */
277/*
278 * MPSAFE
279 */
280int
281modnext(struct thread *td, struct modnext_args *uap)

--- 219 unchanged lines hidden ---