Commit Graph

6 Commits

Author SHA1 Message Date
chs
e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
uwe
9d1ca6d8d9 Do not ##-concatenate identifiers with parens.
Makes gcc3 preprocessor happy.
2003-08-02 22:14:13 +00:00
lukem
b84f53efc5 add RCSID 2001-11-13 12:47:33 +00:00
uch
a4221d6b08 change behavior of cmap_work_alloc(). 2001-06-05 15:02:12 +00:00
uch
859a6a49b2 ANSI KNF. 2001-06-04 18:59:31 +00:00
uch
659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00