Print this page
patch lower-case-segops
@@ -1635,11 +1635,11 @@
}
/*
* Unmap a segment and free it from its associated address space.
* This should be called by anybody who's finished with a whole segment's
- * mapping. Just calls SEGOP_UNMAP() on the whole mapping . It is the
+ * mapping. Just calls segop_unmap() on the whole mapping . It is the
* responsibility of the segment driver to unlink the the segment
* from the address space, and to free public and private data structures
* associated with the segment. (This is typically done by a call to
* seg_free()).
*/
@@ -1655,14 +1655,14 @@
/* Shouldn't have called seg_unmap if mapping isn't yet established */
ASSERT(seg->s_data != NULL);
/* Unmap the whole mapping */
#ifdef DEBUG
- ret = SEGOP_UNMAP(seg, seg->s_base, seg->s_size);
+ ret = segop_unmap(seg, seg->s_base, seg->s_size);
ASSERT(ret == 0);
#else
- SEGOP_UNMAP(seg, seg->s_base, seg->s_size);
+ (void) segop_unmap(seg, seg->s_base, seg->s_size);
#endif /* DEBUG */
}
/*
* Free the segment from its associated as. This should only be called
@@ -1684,11 +1684,11 @@
/*
* If the segment private data field is NULL,
* then segment driver is not attached yet.
*/
if (seg->s_data != NULL)
- SEGOP_FREE(seg);
+ segop_free(seg);
mutex_destroy(&seg->s_pmtx);
ASSERT(seg->s_phead.p_lnext == &seg->s_phead);
ASSERT(seg->s_phead.p_lprev == &seg->s_phead);
kmem_cache_free(seg_cache, seg);
@@ -1853,11 +1853,11 @@
}
return (swap);
}
/*
- * General not supported function for SEGOP_INHERIT
+ * General not supported function for segop_inherit
*/
/* ARGSUSED */
int
seg_inherit_notsup(struct seg *seg, caddr_t addr, size_t len, uint_t op)
{