Module Name: src Committed By: riastradh Date: Fri Mar 20 15:41:44 UTC 2015
Modified Files: src/sys/uvm: uvm_extern.h Log Message: Comments explaining UBC_* flags. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/sys/uvm/uvm_extern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_extern.h diff -u src/sys/uvm/uvm_extern.h:1.193 src/sys/uvm/uvm_extern.h:1.194 --- src/sys/uvm/uvm_extern.h:1.193 Fri Feb 6 18:19:22 2015 +++ src/sys/uvm/uvm_extern.h Fri Mar 20 15:41:43 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_extern.h,v 1.193 2015/02/06 18:19:22 maxv Exp $ */ +/* $NetBSD: uvm_extern.h,v 1.194 2015/03/20 15:41:43 riastradh Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -175,19 +175,23 @@ /* * flags for ubc_alloc() */ -#define UBC_READ 0x001 -#define UBC_WRITE 0x002 -#define UBC_FAULTBUSY 0x004 +#define UBC_READ 0x001 /* reading from object */ +#define UBC_WRITE 0x002 /* writing to object */ +#define UBC_FAULTBUSY 0x004 /* nobody else is using these pages, so busy + * them at alloc and unbusy at release (e.g., + * for writes extending a file) */ /* * flags for ubc_release() */ -#define UBC_UNMAP 0x010 +#define UBC_UNMAP 0x010 /* unmap pages now -- don't leave the + * mappings cached indefinitely */ /* - * flags for ubc_uiomve() + * flags for ubc_uiomove() */ -#define UBC_PARTIALOK 0x100 +#define UBC_PARTIALOK 0x100 /* return early on error; otherwise, zero all + * remaining bytes after error */ /* * flags for uvn_findpages().