memdev.c (ce46e2059e16557a44be599f86de42c0e1a13220) | memdev.c (a20ad05beb32b120fab7f8cfaee81601d7851d92) |
---|---|
1/*- 2 * Copyright (c) 2004 Mark R V Murray 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 --- 20 unchanged lines hidden (view full) --- 29__FBSDID("$FreeBSD$"); 30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/fcntl.h> 34#include <sys/kernel.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> | 1/*- 2 * Copyright (c) 2004 Mark R V Murray 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 --- 20 unchanged lines hidden (view full) --- 29__FBSDID("$FreeBSD$"); 30 31#include <sys/param.h> 32#include <sys/conf.h> 33#include <sys/fcntl.h> 34#include <sys/kernel.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> |
37#include <sys/memrange.h> | |
38#include <sys/module.h> 39#include <sys/mutex.h> 40#include <sys/proc.h> 41#include <sys/signalvar.h> 42#include <sys/systm.h> 43#include <sys/uio.h> 44 45#include <vm/vm.h> --- 47 unchanged lines hidden (view full) --- 93 destroy_dev(kmemdev); 94 break; 95 96 case MOD_SHUTDOWN: 97 break; 98 99 default: 100 return(EOPNOTSUPP); | 37#include <sys/module.h> 38#include <sys/mutex.h> 39#include <sys/proc.h> 40#include <sys/signalvar.h> 41#include <sys/systm.h> 42#include <sys/uio.h> 43 44#include <vm/vm.h> --- 47 unchanged lines hidden (view full) --- 92 destroy_dev(kmemdev); 93 break; 94 95 case MOD_SHUTDOWN: 96 break; 97 98 default: 99 return(EOPNOTSUPP); |
101 break; | |
102 103 } 104 105 return (0); 106} 107 108DEV_MODULE(mem, mem_modevent, NULL); 109MODULE_VERSION(mem, 1); | 100 101 } 102 103 return (0); 104} 105 106DEV_MODULE(mem, mem_modevent, NULL); 107MODULE_VERSION(mem, 1); |