/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
/*
* Prepare for raw I/O request - derived from default_physio()
* This is the 'setup' portion of physio, limited to dealing
* with unstructured access to a single range of user space addresses.
*
* This is quite limited in functionality compared to physio().
*
* 1. allocate and return buf header
* 2. lock down user pages and verify access protections
*
* Use B_READ (S_WRITE) for unstructured access. (We don't know the
* direction of the transfer, so use the safest.)
*/
int
{
int error = 0;
/* segflg *is always* UIO_USERSPACE for us */
/*
* Don't count on b_addr remaining untouched by the
* code below (it may be reset because someone does
* a bp_mapin on the buffer).
*/
if (error != 0) {
return (error);
}
}
return (0);
}
/*
* unlock the pages and free the buf header, if we allocated it.
*/
void
{
/*
* unlock the pages
*/
}