<dec f='src/src/sys/uvm/uvm_amap.h' l='94' type='void amap_share_protect(struct vm_map_entry * , vm_prot_t )'/>
<doc f='src/src/sys/uvm/uvm_amap.h' l='94'>/* protect pages in a shared amap */</doc>
<def f='src/src/sys/uvm/uvm_amap.c' l='641' ll='682' type='void amap_share_protect(struct vm_map_entry * entry, vm_prot_t prot)'/>
<doc f='src/src/sys/uvm/uvm_amap.c' l='628'>/*
 * amap_share_protect: change protection of anons in a shared amap
 *
 * for shared amaps, given the current data structure layout, it is
 * not possible for us to directly locate all maps referencing the
 * shared anon (to change the protection).  in order to protect data
 * in shared maps we use pmap_page_protect().  [this is useful for IPC
 * mechanisms like map entry passing that may want to write-protect
 * all mappings of a shared amap.]  we traverse am_anon or am_slots
 * depending on the current state of the amap.
 *
 * =&gt; entry&apos;s map and amap must be locked by the caller
 */</doc>
