GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VM_MAP_LOCK(9) FreeBSD Kernel Developer's Manual VM_MAP_LOCK(9)

vm_map_lock, vm_map_unlock, vm_map_lock_read, vm_map_unlock_read, vm_map_trylock, vm_map_trylock_read, vm_map_lock_upgrade, vm_map_lock_downgradevm_map locking macros

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>

void
vm_map_lock(vm_map_t map);

void
vm_map_unlock(vm_map_t map);

void
vm_map_lock_read(vm_map_t map);

void
vm_map_unlock_read(vm_map_t map);

int
vm_map_trylock(vm_map_t map);

int
vm_map_trylock_read(vm_map_t map);

int
vm_map_lock_upgrade(vm_map_t map);

int
vm_map_lock_downgrade(vm_map_t map);

The () macro obtains an exclusive lock on map.

The () macro releases an exclusive lock on map.

The () macro obtains a read-lock on map.

The () macro releases a read-lock on map.

The () macro attempts to obtain an exclusive lock on map. It returns FALSE if the lock cannot be immediately acquired; otherwise return TRUE with the lock acquired.

The () macro attempts to obtain a read-lock on map. It returns FALSE if the lock cannot be immediately acquired; otherwise return TRUE with the lock acquired.

The () macro attempts to atomically upgrade a read-lock on map to an exclusive lock.

The () macro attempts to downgrade an exclusive lock on map to a read-lock.

Currently, all of the locking macros implement their locks as sleep locks.

vm_map(9)

This manual page was written by Bruce M Simpson <bms@spc.org>.

July 19, 2003 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.