mem.c (111119) | mem.c (111815) |
---|---|
1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 26 unchanged lines hidden (view full) --- 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 41 * from: FreeBSD: src/sys/i386/i386/mem.c,v 1.94 2001/09/26 42 * | 1/*- 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department, and code derived from software contributed to --- 26 unchanged lines hidden (view full) --- 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * from: Utah $Hdr: mem.c 1.13 89/10/08$ 40 * from: @(#)mem.c 7.2 (Berkeley) 5/9/91 41 * from: FreeBSD: src/sys/i386/i386/mem.c,v 1.94 2001/09/26 42 * |
43 * $FreeBSD: head/sys/sparc64/sparc64/mem.c 111119 2003-02-19 05:47:46Z imp $ | 43 * $FreeBSD: head/sys/sparc64/sparc64/mem.c 111815 2003-03-03 12:15:54Z phk $ |
44 */ 45 46/* 47 * Memory special file 48 * 49 * NOTE: other architectures support mmap()'ing the mem and kmem devices; this 50 * might cause illegal aliases to be created for the locked kernel page(s), so 51 * it is not implemented. --- 22 unchanged lines hidden (view full) --- 74static dev_t memdev, kmemdev; 75 76static d_open_t mmopen; 77static d_close_t mmclose; 78static d_read_t mmrw; 79 80#define CDEV_MAJOR 2 81static struct cdevsw mem_cdevsw = { | 44 */ 45 46/* 47 * Memory special file 48 * 49 * NOTE: other architectures support mmap()'ing the mem and kmem devices; this 50 * might cause illegal aliases to be created for the locked kernel page(s), so 51 * it is not implemented. --- 22 unchanged lines hidden (view full) --- 74static dev_t memdev, kmemdev; 75 76static d_open_t mmopen; 77static d_close_t mmclose; 78static d_read_t mmrw; 79 80#define CDEV_MAJOR 2 81static struct cdevsw mem_cdevsw = { |
82 /* open */ mmopen, 83 /* close */ mmclose, 84 /* read */ mmrw, 85 /* write */ mmrw, 86 /* ioctl */ noioctl, 87 /* poll */ (d_poll_t *)seltrue, 88 /* mmap */ nommap, 89 /* strategy */ nostrategy, 90 /* name */ "mem", 91 /* maj */ CDEV_MAJOR, 92 /* dump */ nodump, 93 /* psize */ nopsize, 94 /* flags */ D_MEM, | 82 .d_open = mmopen, 83 .d_close = mmclose, 84 .d_read = mmrw, 85 .d_write = mmrw, 86 .d_name = "mem", 87 .d_maj = CDEV_MAJOR, 88 .d_flags = D_MEM, |
95}; 96 97static int 98mmclose(dev_t dev, int flags, int fmt, struct thread *td) 99{ 100 101 return (0); 102} --- 143 unchanged lines hidden --- | 89}; 90 91static int 92mmclose(dev_t dev, int flags, int fmt, struct thread *td) 93{ 94 95 return (0); 96} --- 143 unchanged lines hidden --- |