kern_physio.c (32724) | kern_physio.c (34694) |
---|---|
1/* 2 * Copyright (c) 1994 John S. Dyson 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 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * | 1/* 2 * Copyright (c) 1994 John S. Dyson 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 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * |
19 * $Id: kern_physio.c,v 1.22 1997/09/02 20:05:40 bde Exp $ | 19 * $Id: kern_physio.c,v 1.23 1998/01/24 02:01:18 dyson Exp $ |
20 */ 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/buf.h> 25#include <sys/conf.h> 26#include <sys/proc.h> 27#include <vm/vm.h> --- 79 unchanged lines hidden (view full) --- 107 vmapbuf(bp); 108 } 109 110 /* perform transfer */ 111 (*strategy)(bp); 112 113 spl = splbio(); 114 while ((bp->b_flags & B_DONE) == 0) | 20 */ 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/buf.h> 25#include <sys/conf.h> 26#include <sys/proc.h> 27#include <vm/vm.h> --- 79 unchanged lines hidden (view full) --- 107 vmapbuf(bp); 108 } 109 110 /* perform transfer */ 111 (*strategy)(bp); 112 113 spl = splbio(); 114 while ((bp->b_flags & B_DONE) == 0) |
115#if defined(NO_SCHEDULE_MODS) | |
116 tsleep((caddr_t)bp, PRIBIO, "physstr", 0); | 115 tsleep((caddr_t)bp, PRIBIO, "physstr", 0); |
117#else 118 tsleep((caddr_t)bp, curproc->p_usrpri, "physstr", 0); 119#endif | |
120 splx(spl); 121 122 /* release mapping into kernel space */ 123 if (uio->uio_segflg == UIO_USERSPACE) 124 vunmapbuf(bp); 125 126 /* 127 * update the uio data --- 111 unchanged lines hidden --- | 116 splx(spl); 117 118 /* release mapping into kernel space */ 119 if (uio->uio_segflg == UIO_USERSPACE) 120 vunmapbuf(bp); 121 122 /* 123 * update the uio data --- 111 unchanged lines hidden --- |