Deleted Added
full compact
mem.c (113238) mem.c (126080)
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 113238 2003-04-08 06:35:09Z jake $
43 * $FreeBSD: head/sys/sparc64/sparc64/mem.c 126080 2004-02-21 21:10:55Z 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.

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

78static dev_t memdev, kmemdev;
79
80static d_open_t mmopen;
81static d_close_t mmclose;
82static d_read_t mmrw;
83
84#define CDEV_MAJOR 2
85static 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.

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

78static dev_t memdev, kmemdev;
79
80static d_open_t mmopen;
81static d_close_t mmclose;
82static d_read_t mmrw;
83
84#define CDEV_MAJOR 2
85static struct cdevsw mem_cdevsw = {
86 .d_version = D_VERSION,
86 .d_open = mmopen,
87 .d_close = mmclose,
88 .d_read = mmrw,
89 .d_write = mmrw,
90 .d_name = "mem",
91 .d_maj = CDEV_MAJOR,
87 .d_open = mmopen,
88 .d_close = mmclose,
89 .d_read = mmrw,
90 .d_write = mmrw,
91 .d_name = "mem",
92 .d_maj = CDEV_MAJOR,
92 .d_flags = D_MEM,
93 .d_flags = D_MEM | D_NEEDGIANT,
93};
94
95static int
96mmclose(dev_t dev, int flags, int fmt, struct thread *td)
97{
98
99 return (0);
100}

--- 155 unchanged lines hidden ---
94};
95
96static int
97mmclose(dev_t dev, int flags, int fmt, struct thread *td)
98{
99
100 return (0);
101}

--- 155 unchanged lines hidden ---