Rechercher une page de manuel
vm_map_lock_upgrade.9freebsd
Langue: en
Version: 365522 (ubuntu - 25/10/10)
Section: 9 (Appels noyau Linux)
BSD mandoc
NAME
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_downgrade - vm_map locking macrosSYNOPSIS
In sys/param.h In vm/vm.h In vm/vm_map.h Ft void Fn vm_map_lock vm_map_t map Ft void Fn vm_map_unlock vm_map_t map Ft void Fn vm_map_lock_read vm_map_t map Ft void Fn vm_map_unlock_read vm_map_t map Ft int Fn vm_map_trylock vm_map_t map Ft int Fn vm_map_trylock_read vm_map_t map Ft int Fn vm_map_lock_upgrade vm_map_t map Ft int Fn vm_map_lock_downgrade vm_map_t mapDESCRIPTION
The Fn vm_map_lock macro obtains an exclusive lock on Fa map .The Fn vm_map_unlock macro releases an exclusive lock on Fa map .
The Fn vm_map_lock_read macro obtains a read-lock on Fa map .
The Fn vm_map_unlock_read macro releases a read-lock on Fa map .
The Fn vm_map_trylock macro attempts to obtain an exclusive lock on Fa map . It returns FALSE if the lock cannot be immediately acquired; otherwise return TRUE with the lock acquired.
The Fn vm_map_trylock_read macro attempts to obtain a read-lock on Fa map . It returns FALSE if the lock cannot be immediately acquired; otherwise return TRUE with the lock acquired.
The Fn vm_map_lock_upgrade macro attempts to atomically upgrade a read-lock on Fa map to an exclusive lock.
The Fn vm_map_lock_downgrade macro attempts to downgrade an exclusive lock on Fa map to a read-lock.
IMPLEMENTATION NOTES
Currently, all of the locking macros implement their locks as sleep locks.SEE ALSO
vm_map9AUTHORS
This manual page was written by An Bruce M Simpson Aq bms@spc.org .Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre