id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
folio_end_writeback_no_dropbehind(9) | NAME folio_end_writeback_no_dropbehind - End writeback against a folio.
SYNOPSIS void folio_end_writeback_no_dropbehind (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION The folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind.
CONTEXT May b... |
folio_evictable(9) | NAME folio_evictable - Test whether a folio is evictable.
SYNOPSIS bool folio_evictable (struct folio *folio );
ARGUMENTS folio The folio to test.
DESCRIPTION Test whether folio is evictable -- i.e., should be placed on active/inactive lists vs unevictable list. Reasons folio might not be evictable: 1. folio'... |
folio_expected_ref_count(9) | NAME folio_expected_ref_count - calculate the expected folio refcount
SYNOPSIS int folio_expected_ref_count (const struct folio *folio );
ARGUMENTS folio the folio
DESCRIPTION Calculate the expected folio refcount, taking references from the pagecache, swapcache, PG_private and page table mappings into acco... |
folio_file_page(9) | NAME folio_file_page - The page for a particular index.
SYNOPSIS struct page * folio_file_page (struct folio *folio , pgoff_t index );
ARGUMENTS folio The folio which contains this index.
index The index we want to look up.
DESCRIPTION Sometimes after looking up a folio in the page cache, we need... |
folio_file_pfn(9) | NAME folio_file_pfn - like folio_file_page, but return a pfn.
SYNOPSIS kvm_pfn_t folio_file_pfn (struct folio *folio , pgoff_t index );
ARGUMENTS folio The folio which contains this index.
index The index we want to look up.
RETURN The pfn for this index.
SEE ALSO Kernel file ./virt/kvm/guest_me... |
folio_fill_tail(9) | NAME folio_fill_tail - Copy some data to a folio and pad with zeroes.
SYNOPSIS void folio_fill_tail (struct folio *folio , size_t offset , const char *from , size_t len );
ARGUMENTS folio The destination folio.
offset The offset into folio at which to start copying.
from The data to ... |
folio_flush_mapping(9) | NAME folio_flush_mapping - Find the file mapping this folio belongs to.
SYNOPSIS struct address_space * folio_flush_mapping (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION For folios which are in the page cache, return the mapping that this page belongs to. Anonymous folios return NULL, even i... |
folio_free_swap(9) | NAME folio_free_swap - Free the swap space used for this folio.
SYNOPSIS bool folio_free_swap (struct folio *folio );
ARGUMENTS folio The folio to remove.
DESCRIPTION If swap is getting full, or if there are no more mappings of this folio, then call folio_free_swap to free its swap space.
RETURN true if we we... |
folio_get(9) | NAME folio_get - Increment the reference count on a folio.
SYNOPSIS void folio_get (struct folio *folio );
ARGUMENTS folio The folio.
CONTEXT May be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get may be the right interface for yo... |
folio_has_private(9) | NAME folio_has_private - Determine if folio has private stuff
SYNOPSIS int folio_has_private (const struct folio *folio );
ARGUMENTS folio The folio to be checked
DESCRIPTION Determine if a folio has private stuff, indicating that release routines should be invoked upon it.
SEE ALSO Kernel file ./include/linu... |
folio_inode(9) | NAME folio_inode - Get the host inode for this folio.
SYNOPSIS struct inode * folio_inode (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION For folios which are in the page cache, return the inode that this folio belongs to. Do not call this for folios which aren't in the page cache.
SEE ALSO Ke... |
folio_invalidate(9) | NAME folio_invalidate - Invalidate part or all of a folio.
SYNOPSIS void folio_invalidate (struct folio *folio , size_t offset , size_t length );
ARGUMENTS folio The folio which is affected.
offset start of the range to invalidate
length length of the range to invalidate
DESCRIPTION f... |
folio_is_file_lru(9) | NAME folio_is_file_lru - Should the folio be on a file LRU or anon LRU?
SYNOPSIS int folio_is_file_lru (const struct folio *folio );
ARGUMENTS folio The folio to test.
DESCRIPTION We would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, wh... |
folio_isolate_hugetlb(9) | NAME folio_isolate_hugetlb - try to isolate an allocated hugetlb folio
SYNOPSIS bool folio_isolate_hugetlb (struct folio *folio , struct list_head *list );
ARGUMENTS folio the folio to isolate
list the list to add the folio to on success
DESCRIPTION Isolate an allocated (refcount > 0) hugetlb f... |
folio_isolate_lru(9) | NAME folio_isolate_lru - Try to isolate a folio from its LRU list.
SYNOPSIS bool folio_isolate_lru (struct folio *folio );
ARGUMENTS folio Folio to isolate from its LRU list.
DESCRIPTION Isolate a folio from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on. The f... |
folio_lock(9) | NAME folio_lock - Lock this folio.
SYNOPSIS void folio_lock (struct folio *folio );
ARGUMENTS folio The folio to lock.
DESCRIPTION The folio lock protects against many things, probably more than it should. It is primarily held while a folio is being brought uptodate, either from its backing file or from swap... |
folio_lock_killable(9) | NAME folio_lock_killable - Lock this folio, interruptible by a fatal signal.
SYNOPSIS int folio_lock_killable (struct folio *folio );
ARGUMENTS folio The folio to lock.
DESCRIPTION Attempts to lock the folio, like folio_lock, except that the sleep to acquire the lock is interruptible by a fatal signal.
CONTEX... |
folio_lru_list(9) | NAME folio_lru_list - Which LRU list should a folio be on?
SYNOPSIS enum lru_list folio_lru_list (const struct folio *folio );
ARGUMENTS folio The folio to test.
RETURN The LRU list a folio should be on, as an index into the array of LRU lists.
SEE ALSO Kernel file ./include/linux/mm_inline.h folio_is_file_lr... |
folio_lruvec(9) | NAME folio_lruvec - return lruvec for isolating/putting an LRU folio
SYNOPSIS struct lruvec * folio_lruvec (struct folio *folio );
ARGUMENTS folio Pointer to the folio.
DESCRIPTION This function relies on folio->mem_cgroup being stable.
SEE ALSO Kernel file ./include/linux/memcontrol.h mem_cgroup_charge(9), m... |
folio_lruvec_lock(9) | NAME folio_lruvec_lock - Lock the lruvec for a folio.
SYNOPSIS struct lruvec * folio_lruvec_lock (struct folio *folio );
ARGUMENTS folio Pointer to the folio.
DESCRIPTION These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)
... |
folio_lruvec_lock_irq(9) | NAME folio_lruvec_lock_irq - Lock the lruvec for a folio.
SYNOPSIS struct lruvec * folio_lruvec_lock_irq (struct folio *folio );
ARGUMENTS folio Pointer to the folio.
DESCRIPTION These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcoun... |
folio_lruvec_lock_irqsave(9) | NAME folio_lruvec_lock_irqsave - Lock the lruvec for a folio.
SYNOPSIS struct lruvec * folio_lruvec_lock_irqsave (struct folio *folio , unsigned long *flags );
ARGUMENTS folio Pointer to the folio.
flags Pointer to irqsave flags.
DESCRIPTION These functions are safe to use under any of the follow... |
folio_mapcount(9) | NAME folio_mapcount - Number of mappings of this folio.
SYNOPSIS int folio_mapcount (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION The folio mapcount corresponds to the number of present user page table entries that reference any part of a folio. Each such present user page table entry... |
folio_mapped(9) | NAME folio_mapped - Is this folio mapped into userspace?
SYNOPSIS bool folio_mapped (const struct folio *folio );
ARGUMENTS folio The folio.
RETURN True if any page in this folio is referenced by user page tables.
SEE ALSO Kernel file ./include/linux/mm.h folio_page_idx(9), vma_flag_t(9), fault_flag_allo... |
folio_mapping(9) | NAME folio_mapping - Find the mapping where this folio is stored.
SYNOPSIS struct address_space * folio_mapping (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION For folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap ma... |
folio_mark_accessed(9) | NAME folio_mark_accessed - Mark a folio as having seen activity.
SYNOPSIS void folio_mark_accessed (struct folio *folio );
ARGUMENTS folio The folio to mark.
DESCRIPTION This function will perform one of the following transitions: * inactive,unreferenced -> inactive,referenced * inactive,refere... |
folio_mark_dirty(9) | NAME folio_mark_dirty - Mark a folio as being modified.
SYNOPSIS bool folio_mark_dirty (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION The folio may not be truncated while this function is running. Holding the folio lock is sufficient to prevent truncation, but some callers cannot acquire a sl... |
folio_mark_lazyfree(9) | NAME folio_mark_lazyfree - make an anon folio lazyfree
SYNOPSIS void folio_mark_lazyfree (struct folio *folio );
ARGUMENTS folio folio to deactivate
DESCRIPTION folio_mark_lazyfree moves folio to the inactive file list. This is done to accelerate the reclaim of folio.
SEE ALSO Kernel file ./mm/swap.c folio_m... |
folio_matches_swap_entry(9) | NAME folio_matches_swap_entry - Check if a folio matches a given swap entry.
SYNOPSIS bool folio_matches_swap_entry (const struct folio *folio , swp_entry_t entry );
ARGUMENTS folio The folio.
entry The swap entry to check against.
CONTEXT The caller should have the folio locked to ensure it's st... |
folio_maybe_dma_pinned(9) | NAME folio_maybe_dma_pinned - Report if a folio may be pinned for DMA.
SYNOPSIS bool folio_maybe_dma_pinned (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION This function checks if a folio has been pinned via a call to a function in the pin_user_pages family. For small folios, the return valu... |
folio_maybe_mapped_shared(9) | NAME folio_maybe_mapped_shared - Whether the folio is mapped into the page tables of more than one MM
SYNOPSIS bool folio_maybe_mapped_shared (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION This function checks if the folio maybe currently mapped into more than one MM ("maybe mapped shared"), o... |
folio_mk_pmd(9) | NAME folio_mk_pmd - Create a PMD for this folio
SYNOPSIS pmd_t folio_mk_pmd (const struct folio *folio , pgprot_t pgprot );
ARGUMENTS folio The folio to create a PMD for
pgprot The page protection bits to use
DESCRIPTION Create a page table entry for the first page of this folio. This is suitable... |
folio_mk_pte(9) | NAME folio_mk_pte - Create a PTE for this folio
SYNOPSIS pte_t folio_mk_pte (const struct folio *folio , pgprot_t pgprot );
ARGUMENTS folio The folio to create a PTE for
pgprot The page protection bits to use
DESCRIPTION Create a page table entry for the first page of this folio. This is suitable... |
folio_mk_pud(9) | NAME folio_mk_pud - Create a PUD for this folio
SYNOPSIS pud_t folio_mk_pud (const struct folio *folio , pgprot_t pgprot );
ARGUMENTS folio The folio to create a PUD for
pgprot The page protection bits to use
DESCRIPTION Create a page table entry for the first page of this folio. This is suitable... |
folio_mkwrite_check_truncate(9) | NAME folio_mkwrite_check_truncate - check if folio was truncated
SYNOPSIS ssize_t folio_mkwrite_check_truncate (const struct folio *folio , const struct inode *inode );
ARGUMENTS folio the folio to check
inode the inode to check the folio against
RETURN the number of bytes in the folio up to EOF,... |
folio_move_anon_rmap(9) | NAME folio_move_anon_rmap - move a folio to our anon_vma
SYNOPSIS void folio_move_anon_rmap (struct folio *folio , struct vm_area_struct *vma );
ARGUMENTS folio The folio to move to our anon_vma
vma The vma the folio belongs to
DESCRIPTION When a folio belongs exclusively to one process after a... |
folio_next(9) | NAME folio_next - Move to the next physical folio.
SYNOPSIS struct folio * folio_next (struct folio *folio );
ARGUMENTS folio The folio we're currently operating on.
DESCRIPTION If you have physically contiguous memory which may span more than one folio (eg a struct bio_vec), use this function to move from one... |
folio_next_index(9) | NAME folio_next_index - Get the index of the next folio.
SYNOPSIS pgoff_t folio_next_index (const struct folio *folio );
ARGUMENTS folio The current folio.
RETURN The index of the folio which follows this folio in the file.
SEE ALSO Kernel file ./include/linux/pagemap.h filemap_set_wb_err(9), filemap_chec... |
folio_next_pos(9) | NAME folio_next_pos - Get the file position of the next folio.
SYNOPSIS loff_t folio_next_pos (const struct folio *folio );
ARGUMENTS folio The current folio.
RETURN The position of the folio which follows this folio in the file.
SEE ALSO Kernel file ./include/linux/pagemap.h filemap_set_wb_err(9), filema... |
folio_nr_pages(9) | NAME folio_nr_pages - The number of pages in the folio.
SYNOPSIS unsigned long folio_nr_pages (const struct folio *folio );
ARGUMENTS folio The folio.
RETURN A positive power of two.
SEE ALSO Kernel file ./include/linux/mm.h folio_page_idx(9), vma_flag_t(9), fault_flag_allow_retry_first(9), folio_order(9),... |
folio_order(9) | NAME folio_order - The allocation order of a folio.
SYNOPSIS unsigned int folio_order (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION A folio is composed of 2^order pages. See get_order for the definition of order.
RETURN The order of the folio.
SEE ALSO Kernel file ./include/linux/mm... |
folio_page(9) | NAME folio_page - Return a page from a folio.
SYNOPSIS folio_page (folio , n );
ARGUMENTS folio The folio.
n The page number to return.
DESCRIPTION n is relative to the start of the folio. This function does not check that the page number lies within folio; the caller is presumed to have a r... |
folio_page_idx(9) | NAME folio_page_idx - Return the number of a page in a folio.
SYNOPSIS unsigned long folio_page_idx (const struct folio *folio , const struct page *page );
ARGUMENTS folio The folio.
page The folio page.
DESCRIPTION This function expects that the page is actually part of the folio. The returned... |
folio_pfn(9) | NAME folio_pfn - Return the Page Frame Number of a folio.
SYNOPSIS unsigned long folio_pfn (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION A folio may contain multiple pages. The pages have consecutive Page Frame Numbers.
RETURN The Page Frame Number of the first page in the folio.
SEE ... |
folio_pos(9) | NAME folio_pos - Returns the byte position of this folio in its file.
SYNOPSIS loff_t folio_pos (const struct folio *folio );
ARGUMENTS folio The folio.
SEE ALSO Kernel file ./include/linux/pagemap.h filemap_set_wb_err(9), filemap_check_wb_err(9), filemap_sample_wb_err(9), file_sample_sb_err(9), mapping... |
folio_precise_page_mapcount(9) | NAME folio_precise_page_mapcount - Number of mappings of this folio page.
SYNOPSIS int folio_precise_page_mapcount (struct folio *folio , struct page *page );
ARGUMENTS folio The folio.
page The page.
DESCRIPTION The number of present user page table entries that reference this page as tracked... |
folio_pte_batch(9) | NAME folio_pte_batch - detect a PTE batch for a large folio
SYNOPSIS unsigned int folio_pte_batch (struct folio *folio , pte_t *ptep , pte_t pte , unsigned int max_nr );
ARGUMENTS folio The large folio to detect a PTE batch for.
ptep Page table pointer for the first entry.
pte Pag... |
folio_pte_batch_flags(9) | NAME folio_pte_batch_flags - detect a PTE batch for a large folio
SYNOPSIS unsigned int folio_pte_batch_flags (struct folio *folio , struct vm_area_struct *vma , pte_t *ptep , pte_t *ptentp , unsigned int max_nr , fpb_t flags );
ARGUMENTS folio The large folio to detect a PTE batch for.
vma The ... |
folio_put(9) | NAME folio_put - Decrement the reference count on a folio.
SYNOPSIS void folio_put (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not acces... |
folio_put_refs(9) | NAME folio_put_refs - Reduce the reference count on a folio.
SYNOPSIS void folio_put_refs (struct folio *folio , int refs );
ARGUMENTS folio The folio.
refs The amount to subtract from the folio's reference count.
DESCRIPTION If the folio's reference count reaches zero, the memory will be... |
folio_put_swap(9) | NAME folio_put_swap - Decrease swap count of swap entries of a folio.
SYNOPSIS void folio_put_swap (struct folio *folio , struct page *subpage );
ARGUMENTS folio folio with swap entries bounded, must be in swap cache and locked.
subpage if not NULL, only decrease the swap count of this subpage.
DES... |
folio_put_wait_locked(9) | NAME folio_put_wait_locked - Drop a reference and wait for it to be unlocked
SYNOPSIS int folio_put_wait_locked (struct folio *folio , int state );
ARGUMENTS folio The folio to wait for.
state The sleep state (TASK_KILLABLE, TASK_UNINTERRUPTIBLE, etc).
DESCRIPTION The caller should hold a refe... |
folio_putback_hugetlb(9) | NAME folio_putback_hugetlb - unisolate a hugetlb folio
SYNOPSIS void folio_putback_hugetlb (struct folio *folio );
ARGUMENTS folio the isolated hugetlb folio
DESCRIPTION Putback/un-isolate the hugetlb folio that was previous isolated using folio_isolate_hugetlb: marking it non-isolated/migratable and putting ... |
folio_putback_lru(9) | NAME folio_putback_lru - Put previously isolated folio onto appropriate LRU list.
SYNOPSIS void folio_putback_lru (struct folio *folio );
ARGUMENTS folio Folio to be returned to an LRU list.
DESCRIPTION Add previously isolated folio to appropriate LRU list. The folio may still be unevictable for other reasons... |
folio_redirty_for_writepage(9) | NAME folio_redirty_for_writepage - Decline to write a dirty folio.
SYNOPSIS bool folio_redirty_for_writepage (struct writeback_control *wbc , struct folio *folio );
ARGUMENTS wbc The writeback control.
folio The folio.
DESCRIPTION When a writepage implementation decides that it doesn't want to ... |
folio_ref_count(9) | NAME folio_ref_count - The reference count on this folio.
SYNOPSIS int folio_ref_count (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION The refcount is usually incremented by calls to folio_get and decremented by calls to folio_put. Some typical users of the folio refcount: - Each refere... |
folio_referenced(9) | NAME folio_referenced - Test if the folio was referenced.
SYNOPSIS int folio_referenced (struct folio *folio , int is_locked , struct mem_cgroup *memcg , vm_flags_t *vm_flags );
ARGUMENTS folio The folio to test.
is_locked Caller holds lock on the folio.
memcg target memory cgroup
... |
folio_release_kmap(9) | NAME folio_release_kmap - Unmap a folio and drop a refcount.
SYNOPSIS void folio_release_kmap (struct folio *folio , void *addr );
ARGUMENTS folio The folio to release.
addr The address previously returned by a call to kmap_local_folio.
DESCRIPTION It is common, eg in directory handling to kmap ... |
folio_remove_rmap_pmd(9) | NAME folio_remove_rmap_pmd - remove a PMD mapping from a page range of a folio
SYNOPSIS void folio_remove_rmap_pmd (struct folio *folio , struct page *page , struct vm_area_struct *vma );
ARGUMENTS folio The folio to remove the mapping from
page The first page to remove
vma The vm... |
folio_remove_rmap_ptes(9) | NAME folio_remove_rmap_ptes - remove PTE mappings from a page range of a folio
SYNOPSIS void folio_remove_rmap_ptes (struct folio *folio , struct page *page , int nr_pages , struct vm_area_struct *vma );
ARGUMENTS folio The folio to remove the mappings from
page The first page to remove
n... |
folio_remove_rmap_pud(9) | NAME folio_remove_rmap_pud - remove a PUD mapping from a page range of a folio
SYNOPSIS void folio_remove_rmap_pud (struct folio *folio , struct page *page , struct vm_area_struct *vma );
ARGUMENTS folio The folio to remove the mapping from
page The first page to remove
vma The vm... |
folio_reset_order(9) | NAME folio_reset_order - Reset the folio order and derived _nr_pages
SYNOPSIS void folio_reset_order (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION Reset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.
SEE ALSO Kernel file ./include/linux/mm.... |
folio_shift(9) | NAME folio_shift - The size of the memory described by this folio.
SYNOPSIS unsigned int folio_shift (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION A folio represents a number of bytes which is a power-of-two in size. This function tells you which power-of-two the folio is. See also fol... |
folio_size(9) | NAME folio_size - The number of bytes in a folio.
SYNOPSIS size_t folio_size (const struct folio *folio );
ARGUMENTS folio The folio.
CONTEXT The caller should have a reference on the folio to prevent it from being split. It is not necessary for the folio to be locked.
RETURN The number of bytes in this foli... |
folio_split(9) | NAME folio_split - split a folio at @split_at to a @new_order folio
SYNOPSIS int folio_split (struct folio *folio , unsigned int new_order , struct page *split_at , struct list_head *list );
ARGUMENTS folio folio to split
new_order the order of the new folio
split_at a page within the new f... |
folio_split_unmapped(9) | NAME folio_split_unmapped - split a large anon folio that is already unmapped
SYNOPSIS int folio_split_unmapped (struct folio *folio , unsigned int new_order );
ARGUMENTS folio folio to split
new_order the order of folios after split
DESCRIPTION This function is a helper for splitting folios that... |
folio_start_private_2(9) | NAME folio_start_private_2 - Start an fscache write on a folio. [DEPRECATED]
SYNOPSIS void folio_start_private_2 (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION Call this function before writing a folio to a local cache. Starting a second write before the first one finishes is not allowed. Not... |
folio_test_large(9) | NAME folio_test_large - Does this folio contain more than one page?
SYNOPSIS bool folio_test_large (const struct folio *folio );
ARGUMENTS folio The folio to test.
RETURN True if the folio is larger than one page.
SEE ALSO Kernel file ./include/linux/page-flags.h page_folio(9), folio_page(9), folio_xor_flags_... |
folio_test_pmd_mappable(9) | NAME folio_test_pmd_mappable - Can we map this folio with a PMD?
SYNOPSIS bool folio_test_pmd_mappable (struct folio *folio );
ARGUMENTS folio The folio to test
RETURN true - folio can be mapped, false - folio cannot be mapped.
SEE ALSO Kernel file ./include/linux/huge_mm.h thp_vma_allowable_orders(9), try_fo... |
folio_test_uptodate(9) | NAME folio_test_uptodate - Is this folio up to date?
SYNOPSIS bool folio_test_uptodate (const struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION The uptodate flag is set on a folio when every byte in the folio is at least as new as the corresponding bytes on storage. Anonymous and CoW folios are al... |
folio_try_dup_anon_rmap_pmd(9) | NAME folio_try_dup_anon_rmap_pmd - try duplicating a PMD mapping of a page range of a folio
SYNOPSIS int folio_try_dup_anon_rmap_pmd (struct folio *folio , struct page *page , struct vm_area_struct *dst_vma , struct vm_area_struct *src_vma );
ARGUMENTS folio The folio to duplicate the mapping of
page ... |
folio_try_dup_anon_rmap_ptes(9) | NAME folio_try_dup_anon_rmap_ptes - try duplicating PTE mappings of a page range of a folio
SYNOPSIS int folio_try_dup_anon_rmap_ptes (struct folio *folio , struct page *page , int nr_pages , struct vm_area_struct *dst_vma , struct vm_area_struct *src_vma );
ARGUMENTS folio The folio to duplicate the mappings o... |
folio_try_get(9) | NAME folio_try_get - Attempt to increase the refcount on a folio.
SYNOPSIS bool folio_try_get (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION If you do not already have a reference to a folio, you can attempt to get one using this function. It may fail if, for example, the folio has been free... |
folio_try_share_anon_rmap_pmd(9) | NAME folio_try_share_anon_rmap_pmd - try marking an exclusive anonymous page range mapped by a PMD possibly shared to prepare for temporary unmapping
SYNOPSIS int folio_try_share_anon_rmap_pmd (struct folio *folio , struct page *page );
ARGUMENTS folio The folio to share the mapping of
page The f... |
folio_try_share_anon_rmap_pte(9) | NAME folio_try_share_anon_rmap_pte - try marking an exclusive anonymous page mapped by a PTE possibly shared to prepare for KSM or temporary unmapping
SYNOPSIS int folio_try_share_anon_rmap_pte (struct folio *folio , struct page *page );
ARGUMENTS folio The folio to share a mapping of
page The ma... |
folio_trylock(9) | NAME folio_trylock - Attempt to lock a folio.
SYNOPSIS bool folio_trylock (struct folio *folio );
ARGUMENTS folio The folio to attempt to lock.
DESCRIPTION Sometimes it is undesirable to wait for a folio to be unlocked (eg when the locks are being taken in the wrong order, or if making progress through a batch... |
folio_unlock(9) | NAME folio_unlock - Unlock a locked folio.
SYNOPSIS void folio_unlock (struct folio *folio );
ARGUMENTS folio The folio.
DESCRIPTION Unlocks the folio and wakes up any thread sleeping on the page lock.
CONTEXT May be called from interrupt or process context. May not be called from NMI context.
SEE ALSO Kern... |
folio_use_access_time(9) | NAME folio_use_access_time - check if a folio reuses cpupid for page access time
SYNOPSIS bool folio_use_access_time (struct folio *folio );
ARGUMENTS folio folio to check
DESCRIPTION folio's _last_cpupid field is repurposed by memory tiering. In memory tiering mode, cpupid of slow memory folio (not toptier me... |
folio_wait_private_2(9) | NAME folio_wait_private_2 - Wait for PG_private_2 to be cleared on a folio.
SYNOPSIS void folio_wait_private_2 (struct folio *folio );
ARGUMENTS folio The folio to wait on.
DESCRIPTION Wait for PG_private_2 to be cleared on a folio.
SEE ALSO Kernel file ./mm/filemap.c filemap_remove_folio(9), filemap_fdat... |
folio_wait_private_2_killable(9) | NAME folio_wait_private_2_killable - Wait for PG_private_2 to be cleared on a folio.
SYNOPSIS int folio_wait_private_2_killable (struct folio *folio );
ARGUMENTS folio The folio to wait on.
DESCRIPTION Wait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.
RETU... |
folio_wait_stable(9) | NAME folio_wait_stable - wait for writeback to finish, if necessary.
SYNOPSIS void folio_wait_stable (struct folio *folio );
ARGUMENTS folio The folio to wait on.
DESCRIPTION This function determines if the given folio is related to a backing device that requires folio contents to be held stable during writeba... |
folio_wait_writeback(9) | NAME folio_wait_writeback - Wait for a folio to finish writeback.
SYNOPSIS void folio_wait_writeback (struct folio *folio );
ARGUMENTS folio The folio to wait for.
DESCRIPTION If the folio is currently being written back to storage, wait for the I/O to complete.
CONTEXT Sleeps. Must be called in process cont... |
folio_wait_writeback_killable(9) | NAME folio_wait_writeback_killable - Wait for a folio to finish writeback.
SYNOPSIS int folio_wait_writeback_killable (struct folio *folio );
ARGUMENTS folio The folio to wait for.
DESCRIPTION If the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.
CO... |
folio_walk_start(9) | NAME folio_walk_start - walk the page tables to a folio
SYNOPSIS struct folio * folio_walk_start (struct folio_walk *fw , struct vm_area_struct *vma , unsigned long addr , folio_walk_flags_t flags );
ARGUMENTS fw filled with information on success.
vma the VMA.
addr the virtual... |
folio_xor_flags_has_waiters(9) | NAME folio_xor_flags_has_waiters - Change some folio flags.
SYNOPSIS bool folio_xor_flags_has_waiters (struct folio *folio , unsigned long mask );
ARGUMENTS folio The folio.
mask Bits set in this word will be changed.
DESCRIPTION This must only be used for flags which are changed with the foli... |
folio_zero_range(9) | NAME folio_zero_range - Zero a byte range in a folio.
SYNOPSIS void folio_zero_range (struct folio *folio , size_t start , size_t length );
ARGUMENTS folio The folio to write to.
start The first byte to zero.
length The number of bytes to zero.
SEE ALSO Kernel file ./include/linux/... |
folio_zero_segment(9) | NAME folio_zero_segment - Zero a byte range in a folio.
SYNOPSIS void folio_zero_segment (struct folio *folio , size_t start , size_t xend );
ARGUMENTS folio The folio to write to.
start The first byte to zero.
xend One more than the last byte to zero.
SEE ALSO Kernel file ./incl... |
folio_zero_segments(9) | NAME folio_zero_segments - Zero two byte ranges in a folio.
SYNOPSIS void folio_zero_segments (struct folio *folio , size_t start1 , size_t xend1 , size_t start2 , size_t xend2 );
ARGUMENTS folio The folio to write to.
start1 The first byte to zero.
xend1 One more than the last byte i... |
folio_zero_tail(9) | NAME folio_zero_tail - Zero the tail of a folio.
SYNOPSIS void * folio_zero_tail (struct folio *folio , size_t offset , void *kaddr );
ARGUMENTS folio The folio to zero.
offset The byte offset in the folio to start zeroing at.
kaddr The address the folio is currently mapped to.
DESCR... |
folio_zero_user(9) | NAME folio_zero_user - Zero a folio which will be mapped to userspace.
SYNOPSIS void folio_zero_user (struct folio *folio , unsigned long addr_hint );
ARGUMENTS folio The folio to zero.
addr_hint The address accessed by the user or the base address.
SEE ALSO Kernel file ./mm/memory.c free_pgd_rang... |
folioq_append(9) | NAME folioq_append - Add a folio to a folio queue segment
SYNOPSIS unsigned int folioq_append (struct folio_queue *folioq , struct folio *folio );
ARGUMENTS folioq The segment to add to
folio The folio to add
DESCRIPTION Add a folio to the tail of the sequence in a folio queue segment, increasin... |
folioq_append_mark(9) | NAME folioq_append_mark - Add a folio to a folio queue segment
SYNOPSIS unsigned int folioq_append_mark (struct folio_queue *folioq , struct folio *folio );
ARGUMENTS folioq The segment to add to
folio The folio to add
DESCRIPTION Add a folio to the tail of the sequence in a folio queue segment, i... |
folioq_clear(9) | NAME folioq_clear - Clear a folio from a folio queue segment
SYNOPSIS void folioq_clear (struct folio_queue *folioq , unsigned int slot );
ARGUMENTS folioq The segment to clear
slot The folio slot to clear
DESCRIPTION Clear a folio from a sequence in a folio queue segment and clear its marks. Th... |
folioq_count(9) | NAME folioq_count - Query the occupancy of a folio queue segment
SYNOPSIS unsigned int folioq_count (struct folio_queue *folioq );
ARGUMENTS folioq The segment to query
DESCRIPTION Query the number of folios that have been added to a folio queue segment. Note that this is not decreased as folios are removed fr... |
folioq_folio(9) | NAME folioq_folio - Get a folio from a folio queue segment
SYNOPSIS struct folio * folioq_folio (const struct folio_queue *folioq , unsigned int slot );
ARGUMENTS folioq The segment to access
slot The folio slot to access
DESCRIPTION Retrieve the folio in the specified slot from a folio queue s... |
folioq_folio_order(9) | NAME folioq_folio_order - Get the order of a folio from a folio queue segment
SYNOPSIS unsigned int folioq_folio_order (const struct folio_queue *folioq , unsigned int slot );
ARGUMENTS folioq The segment to access
slot The folio slot to access
DESCRIPTION Retrieve the order of the folio in the s... |
folioq_folio_size(9) | NAME folioq_folio_size - Get the size of a folio from a folio queue segment
SYNOPSIS size_t folioq_folio_size (const struct folio_queue *folioq , unsigned int slot );
ARGUMENTS folioq The segment to access
slot The folio slot to access
DESCRIPTION Retrieve the size of the folio in the specified s... |
folioq_full(9) | NAME folioq_full - Query if a folio queue segment is full
SYNOPSIS bool folioq_full (struct folio_queue *folioq );
ARGUMENTS folioq The segment to query
DESCRIPTION Query if a folio queue segment is fully occupied. Note that this does not change if folios are removed from a segment.
SEE ALSO Kernel file ./i... |
folioq_init(9) | NAME folioq_init - Initialise a folio queue segment
SYNOPSIS void folioq_init (struct folio_queue *folioq , unsigned int rreq_id );
ARGUMENTS folioq The segment to initialise
rreq_id The request identifier to use in tracelines.
DESCRIPTION Initialise a folio queue segment and set an identifier to be... |
folioq_is_marked(9) | NAME folioq_is_marked - Check first folio mark in a folio queue segment
SYNOPSIS bool folioq_is_marked (const struct folio_queue *folioq , unsigned int slot );
ARGUMENTS folioq The segment to query
slot The slot number of the folio to query
DESCRIPTION Determine if the first mark is set for the f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.