Deleted Added
full compact
ksyms.c (201145) ksyms.c (201223)
1/*-
2 * Copyright (c) 2008-2009, Stacey Son <sson@freebsd.org>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 *
1/*-
2 * Copyright (c) 2008-2009, Stacey Son <sson@freebsd.org>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
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 * $FreeBSD: head/sys/dev/ksyms/ksyms.c 201145 2009-12-28 22:56:30Z antoine $
26 * $FreeBSD: head/sys/dev/ksyms/ksyms.c 201223 2009-12-29 21:51:28Z rnoland $
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32
33#include <sys/conf.h>
34#include <sys/elf.h>

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

584 break;
585 }
586
587 return (error);
588}
589
590/* ARGUSED */
591static int
27 */
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32
33#include <sys/conf.h>
34#include <sys/elf.h>

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

584 break;
585 }
586
587 return (error);
588}
589
590/* ARGUSED */
591static int
592ksyms_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr,
593 int prot __unused)
592ksyms_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
593 int prot __unused, vm_memattr_t *memattr __unused)
594{
595 struct ksyms_softc *sc;
596 int error;
597
598 error = devfs_get_cdevpriv((void **)&sc);
599 if (error)
600 return (error);
601

--- 64 unchanged lines hidden ---
594{
595 struct ksyms_softc *sc;
596 int error;
597
598 error = devfs_get_cdevpriv((void **)&sc);
599 if (error)
600 return (error);
601

--- 64 unchanged lines hidden ---