Lines Matching defs:lock

41 #include <lock.h>
253 static mutex sAvailableMemoryLock = MUTEX_INITIALIZER("available memory lock");
614 /*! If \a preserveModified is \c true, the caller must hold the lock of the
625 /*! If \a preserveModified is \c true, the caller must hold the lock of all
730 // Since VMCache::Resize() can temporarily drop the lock, we must
777 // Since VMCache::Rebase() can temporarily drop the lock, we must
852 // Since VMCache::Resize() can temporarily drop the lock, we must
1016 // Since VMCache::Discard() can temporarily drop the lock, we must
1042 /*! You need to hold the lock of the cache and the write lock of the address
1136 // some existing area, and unmap_address_range also needs to lock that
1182 // deadlock, since VMCache::_RemoveConsumer() will try to lock it, too.
1323 This function does not lock the kernel address space and needs to be
1574 // For full lock or contiguous areas we're also going to map the pages and
1595 // Reserve memory before acquiring the address space lock. This reduces the
1596 // chances of failure, since while holding the write lock to the address
1616 // For full lock areas reserve the pages before locking the address
1618 // address space lock.
2370 // Now lock both address spaces and actually do the cloning.
2517 // We need to lock the complete cache chain.
2556 // lock the address space and make sure the area isn't wired
2892 // lock address spaces and cache
3747 kprintf("%-*s id %-*s %-*sprotect lock name\n",
4729 // We already hold the lock of the cache at this point.
5311 info->lock = area->wiring;
5334 // lock all affected address spaces and the cache
5480 // TODO: we must honour the lock restrictions of this area
5711 // get and read lock the address space
5798 // lock the address space
5803 // lock the top cache
5808 // The page is not in the top cache, so we lock the whole cache chain
5865 // get and read lock the address space
6024 // get and read lock the address space
6415 create_area_etc(team_id team, const char* name, size_t size, uint32 lock,
6423 return vm_create_anonymous_area(team, name, size, lock, protection, flags,
6431 size_t size, uint32 lock, uint32 protection)
6440 lock, protection, 0, 0, &virtualRestrictions, &physicalRestrictions,
6651 size_t size, uint32 lock, uint32 protection)
6687 size, lock, protection, 0, 0, &virtualRestrictions,
6772 // Write lock the address space and ensure the address range is not wired.
6806 // We need to write lock the address space, since we're going to play with
6886 // We need to lock the complete cache chain, since we potentially unmap
6991 // read lock the address space
7006 // lock the cache
7277 we meddle with the \a lock parameter to force 32 bit.
7281 size_t size, uint32 lock, uint32 protection)
7283 switch (lock) {
7288 lock = B_32_BIT_FULL_LOCK;
7291 lock = B_32_BIT_CONTIGUOUS;
7295 return __create_area_haiku(name, _address, addressSpec, size, lock,