Deleted Added
full compact
subr_uio.c (111937) subr_uio.c (111977)
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_subr.c 8.3 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_subr.c 8.3 (Berkeley) 1/21/94
39 * $FreeBSD: head/sys/kern/kern_subr.c 111937 2003-03-06 03:41:02Z alc $
39 * $FreeBSD: head/sys/kern/kern_subr.c 111977 2003-03-08 06:58:18Z ken $
40 */
41
42#include "opt_zero.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/ktr.h>

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

82 boolean_t wired;
83
84 /*
85 * First lookup the kernel page.
86 */
87 kern_pg = PHYS_TO_VM_PAGE(vtophys(kaddr));
88
89 if ((vm_map_lookup(&map, uaddr,
40 */
41
42#include "opt_zero.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/ktr.h>

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

82 boolean_t wired;
83
84 /*
85 * First lookup the kernel page.
86 */
87 kern_pg = PHYS_TO_VM_PAGE(vtophys(kaddr));
88
89 if ((vm_map_lookup(&map, uaddr,
90 VM_PROT_READ, &entry, &uobject,
90 VM_PROT_WRITE, &entry, &uobject,
91 &upindex, &prot, &wired)) != KERN_SUCCESS) {
92 return(EFAULT);
93 }
94 if ((user_pg = vm_page_lookup(uobject, upindex)) != NULL) {
95 do
96 vm_page_lock_queues();
97 while (vm_page_sleep_if_busy(user_pg, 1, "vm_pgmoveco"));
98 vm_page_busy(user_pg);

--- 360 unchanged lines hidden ---
91 &upindex, &prot, &wired)) != KERN_SUCCESS) {
92 return(EFAULT);
93 }
94 if ((user_pg = vm_page_lookup(uobject, upindex)) != NULL) {
95 do
96 vm_page_lock_queues();
97 while (vm_page_sleep_if_busy(user_pg, 1, "vm_pgmoveco"));
98 vm_page_busy(user_pg);

--- 360 unchanged lines hidden ---