Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_page.h
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | |||||
* of the page is valid. To set or clear this flag, the queue lock for the | * of the page is valid. To set or clear this flag, the queue lock for the | ||||
* page must be held: the page queue lock corresponding to the page's "queue" | * page must be held: the page queue lock corresponding to the page's "queue" | ||||
* field if its value is not PQ_NONE, and the page lock otherwise. | * field if its value is not PQ_NONE, and the page lock otherwise. | ||||
* | * | ||||
* PGA_DEQUEUE is set when the page is scheduled to be dequeued from a page | * PGA_DEQUEUE is set when the page is scheduled to be dequeued from a page | ||||
* queue, and cleared when the dequeue request is processed. A page may | * queue, and cleared when the dequeue request is processed. A page may | ||||
* have PGA_DEQUEUE set and PGA_ENQUEUED cleared, for instance if a dequeue | * have PGA_DEQUEUE set and PGA_ENQUEUED cleared, for instance if a dequeue | ||||
* is requested after the page is scheduled to be enqueued but before it is | * is requested after the page is scheduled to be enqueued but before it is | ||||
* actually inserted into the page queue. The page lock must be held to set | * actually inserted into the page queue. For allocated pages, the page lock | ||||
* this flag, and the queue lock for the page must be held to clear it. | * must be held to set this flag, but it may be set by vm_page_free_prep() | ||||
* without the page lock held. The page queue lock must be held to clear the | |||||
* PGA_DEQUEUE flag. | |||||
* | * | ||||
* PGA_REQUEUE is set when the page is scheduled to be enqueued or requeued | * PGA_REQUEUE is set when the page is scheduled to be enqueued or requeued | ||||
* in its page queue. The page lock must be held to set this flag, and the | * in its page queue. The page lock must be held to set this flag, and the | ||||
* queue lock for the page must be held to clear it. | * queue lock for the page must be held to clear it. | ||||
* | * | ||||
* PGA_REQUEUE_HEAD is a special flag for enqueuing pages near the head of | * PGA_REQUEUE_HEAD is a special flag for enqueuing pages near the head of | ||||
* the inactive queue, thus bypassing LRU. The page lock must be held to | * the inactive queue, thus bypassing LRU. The page lock must be held to | ||||
* set this flag, and the queue lock for the page must be held to clear it. | * set this flag, and the queue lock for the page must be held to clear it. | ||||
▲ Show 20 Lines • Show All 461 Lines • Show Last 20 Lines |