MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_map_entry_pred

Function vm_map_entry_pred

freebsd/vm/vm_map.c:1047–1059  ·  view source on GitHub ↗

* vm_map_entry_{pred,succ}: * * Find the {predecessor, successor} of the entry by taking one step * in the appropriate direction and backtracking as much as necessary. * vm_map_entry_succ is defined in vm_map.h. */

Source from the content-addressed store, hash-verified

1045 * vm_map_entry_succ is defined in vm_map.h.
1046 */
1047static inline vm_map_entry_t
1048vm_map_entry_pred(vm_map_entry_t entry)
1049{
1050 vm_map_entry_t prior;
1051
1052 prior = entry->left;
1053 if (prior->right->start < entry->start) {
1054 do
1055 prior = prior->right;
1056 while (prior->right != entry);
1057 }
1058 return (prior);
1059}
1060
1061static inline vm_size_t
1062vm_size_max(vm_size_t a, vm_size_t b)

Callers 6

vm_map_lookup_clip_startFunction · 0.85
vm_map_protectFunction · 0.85
vm_map_unwireFunction · 0.85
vm_map_wire_lockedFunction · 0.85
vm_map_stack_lockedFunction · 0.85
vm_map_growstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected