Searched refs:kIOMemoryPurgeableEmpty (Results 1 - 2 of 2) sorted by relevance

/xnu-2782.1.97/iokit/IOKit/
H A DIOMemoryDescriptor.h128 kIOMemoryPurgeableEmpty = 4, enumerator in enum:__anon613
252 @discussion Buffers may be allocated with the ability to have their purgeable status changed - IOBufferMemoryDescriptor with the kIOMemoryPurgeable option, VM_FLAGS_PURGEABLE may be passed to vm_allocate() in user space to allocate such buffers. The purgeable status of such a buffer may be controlled with setPurgeable(). The process of making a purgeable memory descriptor non-volatile and determining its previous state is atomic - if a purgeable memory descriptor is made nonvolatile and the old state is returned as kIOMemoryPurgeableVolatile, then the memory's previous contents are completely intact and will remain so until the memory is made volatile again. If the old state is returned as kIOMemoryPurgeableEmpty then the memory was reclaimed while it was in a volatile state and its previous contents have been lost.
257 kIOMemoryPurgeableEmpty - make the memory volatile, and discard any pages allocated to it.
261 kIOMemoryPurgeableEmpty - the memory was volatile and has been discarded by the VM system.<br>
/xnu-2782.1.97/iokit/Kernel/
H A DIOMemoryDescriptor.cpp273 case kIOMemoryPurgeableEmpty:
297 *state = kIOMemoryPurgeableEmpty;
1027 if (kIOMemoryPurgeableEmpty == state) totalState = kIOMemoryPurgeableEmpty;
1028 else if (kIOMemoryPurgeableEmpty == totalState) continue;

Completed in 86 milliseconds