:On Thu, 29 Jul 1999 10:21:52 -0700 (PDT) : Matthew Dillon <dil...@apollo.backplane.com> wrote: : : > Shoot, it barely took 10 minutes for me to move the behavior field from : > the object to the vm map entry. : :...make sure the map entries are clipped properly. It's easy to miss this :in the most common test case of advising the entire mapping. : : -- Jason R. Thorpe <thor...@nas.nasa.gov>
I believe the code is doing the right thing. Here is an excerpt from vm_map_madvise() in vm_map.c (with the behavior moved to the map entry): for(current = entry; (current != &map->header) && (current->start < end); current = current->next) { vm_size_t size; if (current->eflags & MAP_ENTRY_IS_SUB_MAP) { continue; } vm_map_clip_end(map, current, end); size = current->end - current->start; ... current->behavior = ... ... -Matt Matthew Dillon <dil...@backplane.com> To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message