netmap_freebsd.c (61c1328eb016476ee7ff5ad65d8224bb43e572db) | netmap_freebsd.c (0012f373e43db2341c20329163ed2d5ad3b0f341) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1042 unchanged lines hidden (view full) --- 1051 1052 VM_OBJECT_WUNLOCK(object); 1053 page = vm_page_getfake(paddr, memattr); 1054 VM_OBJECT_WLOCK(object); 1055 vm_page_free(*mres); 1056 *mres = page; 1057 vm_page_insert(page, object, pidx); 1058 } | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (C) 2013-2014 Universita` di Pisa. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1042 unchanged lines hidden (view full) --- 1051 1052 VM_OBJECT_WUNLOCK(object); 1053 page = vm_page_getfake(paddr, memattr); 1054 VM_OBJECT_WLOCK(object); 1055 vm_page_free(*mres); 1056 *mres = page; 1057 vm_page_insert(page, object, pidx); 1058 } |
1059 page->valid = VM_PAGE_BITS_ALL; | 1059 vm_page_valid(page); |
1060 return (VM_PAGER_OK); 1061} 1062 1063 1064static struct cdev_pager_ops netmap_cdev_pager_ops = { 1065 .cdev_pg_ctor = netmap_dev_pager_ctor, 1066 .cdev_pg_dtor = netmap_dev_pager_dtor, 1067 .cdev_pg_fault = netmap_dev_pager_fault, --- 553 unchanged lines hidden --- | 1060 return (VM_PAGER_OK); 1061} 1062 1063 1064static struct cdev_pager_ops netmap_cdev_pager_ops = { 1065 .cdev_pg_ctor = netmap_dev_pager_ctor, 1066 .cdev_pg_dtor = netmap_dev_pager_dtor, 1067 .cdev_pg_fault = netmap_dev_pager_fault, --- 553 unchanged lines hidden --- |