* vm_map_locked: * * Returns a non-zero value if the caller holds a write (exclusive) lock * on the specified map and the value "0" otherwise. */
| 813 | * on the specified map and the value "0" otherwise. |
| 814 | */ |
| 815 | int |
| 816 | vm_map_locked(vm_map_t map) |
| 817 | { |
| 818 | |
| 819 | if (map->system_map) |
| 820 | return (mtx_owned(&map->system_mtx)); |
| 821 | else |
| 822 | return (sx_xlocked(&map->lock)); |
| 823 | } |
| 824 | |
| 825 | /* |
| 826 | * _vm_map_unlock_and_wait: |
no outgoing calls
no test coverage detected