Deleted Added
full compact
netmap_freebsd.c (270063) netmap_freebsd.c (274354)
1/*
2 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
1/*
2 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26/* $FreeBSD: head/sys/dev/netmap/netmap_freebsd.c 270063 2014-08-16 15:00:01Z luigi $ */
26/* $FreeBSD: head/sys/dev/netmap/netmap_freebsd.c 274354 2014-11-10 20:25:33Z luigi $ */
27
28#include <sys/types.h>
29#include <sys/module.h>
30#include <sys/errno.h>
31#include <sys/param.h> /* defines used in kernel.h */
32#include <sys/poll.h> /* POLLIN, POLLOUT */
33#include <sys/kernel.h> /* types used in module initialization */
34#include <sys/conf.h> /* DEV_MODULE */

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

461netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
462 vm_ooffset_t foff, struct ucred *cred, u_short *color)
463{
464 struct netmap_vm_handle_t *vmh = handle;
465
466 if (netmap_verbose)
467 D("handle %p size %jd prot %d foff %jd",
468 handle, (intmax_t)size, prot, (intmax_t)foff);
27
28#include <sys/types.h>
29#include <sys/module.h>
30#include <sys/errno.h>
31#include <sys/param.h> /* defines used in kernel.h */
32#include <sys/poll.h> /* POLLIN, POLLOUT */
33#include <sys/kernel.h> /* types used in module initialization */
34#include <sys/conf.h> /* DEV_MODULE */

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

461netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
462 vm_ooffset_t foff, struct ucred *cred, u_short *color)
463{
464 struct netmap_vm_handle_t *vmh = handle;
465
466 if (netmap_verbose)
467 D("handle %p size %jd prot %d foff %jd",
468 handle, (intmax_t)size, prot, (intmax_t)foff);
469 if (color)
470 *color = 0;
469 dev_ref(vmh->dev);
470 return 0;
471}
472
473
474static void
475netmap_dev_pager_dtor(void *handle)
476{

--- 355 unchanged lines hidden ---
471 dev_ref(vmh->dev);
472 return 0;
473}
474
475
476static void
477netmap_dev_pager_dtor(void *handle)
478{

--- 355 unchanged lines hidden ---