From de64ad5751a536bfa7c2874f551d70fda1b8a645 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 9 Apr 1995 19:02:29 +0000 Subject: Add a new window field, max_pos. Rename the location field `pos'. --- devio/window.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'devio') diff --git a/devio/window.h b/devio/window.h index 4bd6301c..c15ebd9e 100644 --- a/devio/window.h +++ b/devio/window.h @@ -33,7 +33,9 @@ struct window vm_address_t buffer; /* The device offset of the window. */ - vm_offset_t location; + vm_offset_t pos; + /* The end of the device. */ + vm_offset_t max_pos; /* The length of the window (should be a multiple of __vm_page_size). If this is 0, this window isn't allocated. */ @@ -55,7 +57,7 @@ struct window /* Create a VM window onto the memory object MEMOBJ, and return it in WIN. MIN_SIZE and MAX_SIZE are the minimum and maximum sizes that the window will shrink/grow to. */ -error_t window_create(mach_port_t memobj, +error_t window_create(mach_port_t memobj, vm_offset_t max_pos, vm_size_t min_size, vm_size_t max_size, int read_only, struct window **win); -- cgit v1.2.3