kern_physio.c (21144e3bf1f416a758f6546bfabfa8e4e8cba507) | kern_physio.c (b99c307a21423935df9af6a532033f28b62e2966) |
---|---|
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 --- 95 unchanged lines hidden (view full) --- 104 bp->b_iocmd == BIO_READ ? 105 VM_PROT_WRITE : VM_PROT_READ)) { 106 error = EFAULT; 107 goto doerror; 108 } 109 vmapbuf(bp); 110 } 111 | 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 --- 95 unchanged lines hidden (view full) --- 104 bp->b_iocmd == BIO_READ ? 105 VM_PROT_WRITE : VM_PROT_READ)) { 106 error = EFAULT; 107 goto doerror; 108 } 109 vmapbuf(bp); 110 } 111 |
112 BUF_STRATEGY(bp, 0); | 112 DEV_STRATEGY(bp, 0); |
113 spl = splbio(); 114 while ((bp->b_flags & B_DONE) == 0) 115 tsleep((caddr_t)bp, PRIBIO, "physstr", 0); 116 splx(spl); 117 118 if (uio->uio_segflg == UIO_USERSPACE) 119 vunmapbuf(bp); 120 iolen = bp->b_bcount - bp->b_resid; --- 17 unchanged lines hidden --- | 113 spl = splbio(); 114 while ((bp->b_flags & B_DONE) == 0) 115 tsleep((caddr_t)bp, PRIBIO, "physstr", 0); 116 splx(spl); 117 118 if (uio->uio_segflg == UIO_USERSPACE) 119 vunmapbuf(bp); 120 iolen = bp->b_bcount - bp->b_resid; --- 17 unchanged lines hidden --- |