id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
pt_buffer_fini_topa(9) | NAME pt_buffer_fini_topa - deallocate ToPA structure of a buffer
SYNOPSIS void pt_buffer_fini_topa (struct pt_buffer *buf );
ARGUMENTS buf PT buffer.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_full(... |
pt_buffer_free_aux(9) | NAME pt_buffer_free_aux - perf AUX deallocation path callback
SYNOPSIS void pt_buffer_free_aux (void *data );
ARGUMENTS data PT buffer.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_full(9), topa_insert... |
pt_buffer_init_topa(9) | NAME pt_buffer_init_topa - initialize ToPA table for pt buffer
SYNOPSIS int pt_buffer_init_topa (struct pt_buffer *buf , int cpu , unsigned long nr_pages , gfp_t gfp );
ARGUMENTS buf PT buffer.
cpu CPU on which to allocate.
nr_pages No. of pages to allocate.
gfp Allo... |
pt_buffer_region(9) | NAME pt_buffer_region - obtain current output region's address
SYNOPSIS void * pt_buffer_region (struct pt_buffer *buf );
ARGUMENTS buf PT buffer.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_full(9),... |
pt_buffer_region_size(9) | NAME pt_buffer_region_size - obtain current output region's size
SYNOPSIS size_t pt_buffer_region_size (struct pt_buffer *buf );
ARGUMENTS buf PT buffer.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_f... |
pt_buffer_reset_markers(9) | NAME pt_buffer_reset_markers - place interrupt and stop bits in the buffer
SYNOPSIS int pt_buffer_reset_markers (struct pt_buffer *buf , struct perf_output_handle *handle );
ARGUMENTS buf PT buffer.
handle Current output handle.
DESCRIPTION Place INT and STOP marks to prevent overwriting old ... |
pt_buffer_reset_offsets(9) | NAME pt_buffer_reset_offsets - adjust buffer's write pointers from aux_head
SYNOPSIS void pt_buffer_reset_offsets (struct pt_buffer *buf , unsigned long head );
ARGUMENTS buf PT buffer.
head Write pointer (aux_head) from AUX buffer.
DESCRIPTION Find the ToPA table and entry corresponding to g... |
pt_buffer_setup_aux(9) | NAME pt_buffer_setup_aux - set up topa tables for a PT buffer
SYNOPSIS void * pt_buffer_setup_aux (struct perf_event *event , void **pages , int nr_pages , bool snapshot );
ARGUMENTS event Performance event
pages Array of pointers to buffer pages passed from perf core.
nr_pages Number o... |
pt_can_have_leaf(9) | NAME pt_can_have_leaf - True if the current level can have an OA entry
SYNOPSIS bool pt_can_have_leaf (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION True if the current level can support pt_install_leaf_entry. A leaf entry produce an OA.
SEE ALSO Kernel file ./drivers/iommu/gen... |
pt_can_have_table(9) | NAME pt_can_have_table - True if the current level can have a lower table
SYNOPSIS bool pt_can_have_table (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION Every level except 0 is allowed to have a lower table.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_common.h pt_attr_f... |
pt_check_range(9) | NAME pt_check_range - Validate the range can be iterated
SYNOPSIS int pt_check_range (struct pt_range *range );
ARGUMENTS range Range to validate
DESCRIPTION Check that VA and last_va fall within the permitted range of VAs. If the format is using PT_FEAT_SIGN_EXTEND then this also checks the sign extension is ... |
pt_clear_entries(9) | NAME pt_clear_entries - Make entries empty (non-present)
SYNOPSIS void pt_clear_entries (struct pt_state *pts , unsigned int num_contig_lg2 );
ARGUMENTS pts Starting table index
num_contig_lg2
Number of contiguous items to clear
DESCRIPTION Clear a run of entries. A cleared entry w... |
pt_compute_best_pgsize(9) | NAME pt_compute_best_pgsize - Determine the best page size for leaf entries
SYNOPSIS unsigned int pt_compute_best_pgsize (pt_vaddr_t pgsz_bitmap , pt_vaddr_t va , pt_vaddr_t last_va , pt_oaddr_t oa );
ARGUMENTS pgsz_bitmap Permitted page sizes
va Starting virtual address for the leaf entry
la... |
pt_descend(9) | NAME pt_descend - Recursively invoke the walker for the lower level
SYNOPSIS int pt_descend (struct pt_state *pts , void *arg , pt_level_fn_t fn );
ARGUMENTS pts Iteration State
arg Value to pass to the function
fn Walker function to call
DESCRIPTION pts must point to a table... |
pt_dirty_supported(9) | NAME pt_dirty_supported - True if the page table supports dirty tracking
SYNOPSIS bool pt_dirty_supported (struct pt_common *common );
ARGUMENTS common Page table to query
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_common.h pt_attr_from_entry(9), pt_can_have_leaf(9), pt_can_have_table(9), pt... |
pt_entry_fully_covered(9) | NAME pt_entry_fully_covered - Check if the item or entry is entirely contained within pts->range
SYNOPSIS bool pt_entry_fully_covered (const struct pt_state *pts , unsigned int oasz_lg2 );
ARGUMENTS pts Iteration State
oasz_lg2 The size of the item to check, pt_table_item_lg2sz or pt_entry_oa_lg2sz... |
pt_entry_is_write_dirty(9) | NAME pt_entry_is_write_dirty - True if the entry has been written to
SYNOPSIS bool pt_entry_is_write_dirty (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION "write dirty" means that the HW has written to the OA translated by this entry. If the entry is contiguous then the consolidated "... |
pt_entry_make_write_clean(9) | NAME pt_entry_make_write_clean - Make the entry write clean
SYNOPSIS void pt_entry_make_write_clean (struct pt_state *pts );
ARGUMENTS pts Table entry to change
DESCRIPTION Modify the entry so that pt_entry_is_write_dirty == false. The HW will eventually be notified of this change via a TLB flush, which is t... |
pt_entry_make_write_dirty(9) | NAME pt_entry_make_write_dirty - Make an entry dirty
SYNOPSIS bool pt_entry_make_write_dirty (struct pt_state *pts );
ARGUMENTS pts Table entry to change
DESCRIPTION Make pt_entry_is_write_dirty return true for this entry. This can be called asynchronously with any other table manipulation under a RCU lock a... |
pt_entry_num_contig_lg2(9) | NAME pt_entry_num_contig_lg2 - Number of contiguous items for this leaf entry
SYNOPSIS unsigned int pt_entry_num_contig_lg2 (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION Return the number of contiguous items this leaf entry spans. If the entry is single item it returns ilog2(1).
SE... |
pt_entry_oa(9) | NAME pt_entry_oa - Output Address for this leaf entry
SYNOPSIS pt_oaddr_t pt_entry_oa (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION Return the output address for the start of the entry. If the entry is contiguous this returns the same value for each sub-item. I.e.:: log2_mod(pt_entr... |
pt_entry_oa_exact(9) | NAME pt_entry_oa_exact - Return the complete OA for an entry
SYNOPSIS pt_oaddr_t pt_entry_oa_exact (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION During iteration the first entry could have a VA with an offset from the natural start of the entry. Return the exact OA including the pts... |
pt_entry_oa_lg2sz(9) | NAME pt_entry_oa_lg2sz - Return the size of an OA entry
SYNOPSIS unsigned int pt_entry_oa_lg2sz (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION If the entry is not contiguous this returns pt_table_item_lg2sz, otherwise it returns the total VA/OA size of the entire contiguous entry.
S... |
pt_full_va_prefix(9) | NAME pt_full_va_prefix - The top bits of the VA
SYNOPSIS pt_vaddr_t pt_full_va_prefix (const struct pt_common *common );
ARGUMENTS common Page table to query
DESCRIPTION This is usually 0, but some formats have their VA space going downward from PT_VADDR_MAX, and will return that instead. This value must always... |
pt_handle_status(9) | NAME pt_handle_status - take care of possible status conditions
SYNOPSIS void pt_handle_status (struct pt *pt );
ARGUMENTS pt Per-cpu pt context.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_full(9),... |
pt_has_system_page_size(9) | NAME pt_has_system_page_size - True if level 0 can install a PAGE_SHIFT entry
SYNOPSIS bool pt_has_system_page_size (const struct pt_common *common );
ARGUMENTS common Page table to query
DESCRIPTION If true the caller can use, at level 0, pt_install_leaf_entry(PAGE_SHIFT). This is useful to create optimized p... |
pt_index_to_va(9) | NAME pt_index_to_va - Update range->va to the current pts->index
SYNOPSIS void pt_index_to_va (struct pt_state *pts );
ARGUMENTS pts Iteration State
DESCRIPTION Adjust range->va to match the current index. This is done in a lazy manner since computing the VA takes several instructions and is rarely required.... |
pt_init(9) | NAME pt_init - Initialize a pt_state on the stack
SYNOPSIS struct pt_state pt_init (struct pt_range *range , unsigned int level , struct pt_table_p *table );
ARGUMENTS range Range pointer to embed in the state
level Table level for the state
table Pointer to the table memory at level... |
pt_init_top(9) | NAME pt_init_top - Initialize a pt_state on the stack
SYNOPSIS struct pt_state pt_init_top (struct pt_range *range );
ARGUMENTS range Range pointer to embed in the state
DESCRIPTION The pt_state points to the top most level.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_iter.h pt_check_range(9), pt_inde... |
pt_install_leaf_entry(9) | NAME pt_install_leaf_entry - Write a leaf entry to the table
SYNOPSIS void pt_install_leaf_entry (struct pt_state *pts , pt_oaddr_t oa , unsigned int oasz_lg2 , const struct pt_write_attrs *attrs );
ARGUMENTS pts Table index to change
oa Output Address for this leaf
oasz_lg2 Size i... |
pt_install_table(9) | NAME pt_install_table - Write a table entry to the table
SYNOPSIS bool pt_install_table (struct pt_state *pts , pt_oaddr_t table_pa , const struct pt_write_attrs *attrs );
ARGUMENTS pts Table index to change
table_pa CPU physical address of the lower table's memory
attrs Attributes to... |
pt_item_oa(9) | NAME pt_item_oa - Output Address for this leaf item
SYNOPSIS pt_oaddr_t pt_item_oa (const struct pt_state *pts );
ARGUMENTS pts Item to query
DESCRIPTION Return the output address for this item. If the item is part of a contiguous entry it returns the value of the OA for this individual sub item. See pt_en... |
pt_load_entry(9) | NAME pt_load_entry - Read from the location pts points at into the pts
SYNOPSIS void pt_load_entry (struct pt_state *pts );
ARGUMENTS pts Table index to load
DESCRIPTION Set the type of entry that was loaded. pts->entry and pts->table_lower will be filled in with the entry's content.
SEE ALSO Kernel file ... |
pt_load_entry_raw(9) | NAME pt_load_entry_raw - Read from the location pts points at into the pts
SYNOPSIS enum pt_entry_type pt_load_entry_raw (struct pt_state *pts );
ARGUMENTS pts Table index to load
DESCRIPTION Return the type of entry that was loaded. pts->entry will be filled in with the entry's content. See pt_load_entry
S... |
pt_load_single_entry(9) | NAME pt_load_single_entry - Version of pt_load_entry() usable within a walker
SYNOPSIS enum pt_entry_type pt_load_single_entry (struct pt_state *pts );
ARGUMENTS pts Iteration State
DESCRIPTION Alternative to for_each_pt_level_entry if the walker function uses only a single entry.
SEE ALSO Kernel file .... |
pt_make_range(9) | NAME pt_make_range - Return a range that spans part of the table
SYNOPSIS struct pt_range pt_make_range (struct pt_common *common , pt_vaddr_t va , pt_vaddr_t last_va );
ARGUMENTS common Table
va Start address
last_va Last address
DESCRIPTION The caller must validate the range with ... |
pt_max_oa_lg2(9) | NAME pt_max_oa_lg2 - Return the maximum OA the table format can hold
SYNOPSIS unsigned int pt_max_oa_lg2 (const struct pt_common *common );
ARGUMENTS common Page table to query
DESCRIPTION The value oalog2_to_max_int(pt_max_oa_lg2) is the MAX for the OA. This is the absolute maximum address the table can hold. ... |
pt_max_sw_bit(9) | NAME pt_max_sw_bit - Return the maximum software bit usable for any level and entry
SYNOPSIS unsigned int pt_max_sw_bit (struct pt_common *common );
ARGUMENTS common Page table
DESCRIPTION The swbit can be passed as bitnr to the other sw_bit functions.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_com... |
pt_next_entry(9) | NAME pt_next_entry - Advance pts to the next entry
SYNOPSIS void pt_next_entry (struct pt_state *pts );
ARGUMENTS pts Iteration State
DESCRIPTION Update pts to go to the next index at this level. If pts is pointing at a contiguous entry then the index may advance my more than one.
SEE ALSO Kernel file ./d... |
pt_num_items_lg2(9) | NAME pt_num_items_lg2 - Return the number of items in this table level
SYNOPSIS unsigned int pt_num_items_lg2 (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION The number of items in a table level defines the number of bits this level decodes from the VA. This function is not call... |
pt_pgsz_lg2_to_level(9) | NAME pt_pgsz_lg2_to_level - Return the level that maps the page size
SYNOPSIS unsigned int pt_pgsz_lg2_to_level (struct pt_common *common , unsigned int pgsize_lg2 );
ARGUMENTS common Page table to query
pgsize_lg2 Log2 page size
DESCRIPTION Returns the table level that will map the given page size. Th... |
pt_possible_sizes(9) | NAME pt_possible_sizes - Return a bitmap of possible output sizes at this level
SYNOPSIS pt_vaddr_t pt_possible_sizes (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION Each level has a list of possible output sizes that can be installed as leaf entries. If pt_can_have_leaf is false ... |
pt_range_slice(9) | NAME pt_range_slice - Return a range that spans indexes
SYNOPSIS struct pt_range pt_range_slice (const struct pt_state *pts , unsigned int start_index , unsigned int end_index );
ARGUMENTS pts Iteration State
start_index Starting index within pts
end_index Ending index within pts
DESCRIPTIO... |
pt_range_to_end_index(9) | NAME pt_range_to_end_index - Ending index iteration
SYNOPSIS unsigned int pt_range_to_end_index (const struct pt_state *pts );
ARGUMENTS pts Iteration State
RETURN the last index for the iteration in pts.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_iter.h pt_check_range(9), pt_index_to_va(9),... |
pt_range_to_index(9) | NAME pt_range_to_index - Starting index for an iteration
SYNOPSIS unsigned int pt_range_to_index (const struct pt_state *pts );
ARGUMENTS pts Iteration State
RETURN the starting index for the iteration in pts.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_iter.h pt_check_range(9), pt_index_to_va(... |
pt_read_offset(9) | NAME pt_read_offset - translate registers into buffer pointers
SYNOPSIS void pt_read_offset (struct pt_buffer *buf );
ARGUMENTS buf PT buffer.
DESCRIPTION Set buffer's output pointers from MSR values.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), ... |
pt_regs_to_gdb_regs(9) | NAME pt_regs_to_gdb_regs - Convert ptrace regs to GDB regs
SYNOPSIS void pt_regs_to_gdb_regs (unsigned long *gdb_regs , struct pt_regs *regs );
ARGUMENTS gdb_regs A pointer to hold the registers in the order GDB wants.
regs The struct pt_regs of the current process.
DESCRIPTION Convert the pt_regs ... |
pt_set_sw_bit_release(9) | NAME pt_set_sw_bit_release - Set a software bit in an item
SYNOPSIS void pt_set_sw_bit_release (struct pt_state *pts , unsigned int bitnr );
ARGUMENTS pts Entry to set
bitnr Bit to set
DESCRIPTION Software bits are ignored by HW and can be used for any purpose by the software. This does a set b... |
pt_table_item_lg2sz(9) | NAME pt_table_item_lg2sz - Size of a single item entry in this table level
SYNOPSIS unsigned int pt_table_item_lg2sz (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION The size of the item specifies how much VA and OA a single item occupies. See pt_entry_oa_lg2sz for the same value i... |
pt_table_oa_lg2sz(9) | NAME pt_table_oa_lg2sz - Return the VA/OA size of the entire table
SYNOPSIS unsigned int pt_table_oa_lg2sz (const struct pt_state *pts );
ARGUMENTS pts The current level
DESCRIPTION Return the size of VA decoded by the entire table level.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_common.h pt_... |
pt_table_pa(9) | NAME pt_table_pa - Return the CPU physical address of the table entry
SYNOPSIS pt_oaddr_t pt_table_pa (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION This is only ever called on PT_ENTRY_TABLE entries. Must return the same value passed to pt_install_table.
SEE ALSO Kernel file ./... |
pt_table_ptr(9) | NAME pt_table_ptr - Return a CPU pointer for a table item
SYNOPSIS struct pt_table_p * pt_table_ptr (const struct pt_state *pts );
ARGUMENTS pts Entry to query
DESCRIPTION Same as pt_table_pa but returns a CPU pointer.
SEE ALSO Kernel file ./drivers/iommu/generic_pt/pt_common.h pt_attr_from_entry(9), ... |
pt_test_sw_bit_acquire(9) | NAME pt_test_sw_bit_acquire - Read a software bit in an item
SYNOPSIS bool pt_test_sw_bit_acquire (struct pt_state *pts , unsigned int bitnr );
ARGUMENTS pts Entry to read
bitnr Bit to read
DESCRIPTION Software bits are ignored by HW and can be used for any purpose by the software. This does a ... |
pt_top_memsize_lg2(9) | NAME pt_top_memsize_lg2 -
SYNOPSIS unsigned int pt_top_memsize_lg2 (struct pt_common *common , uintptr_t top_of_table );
ARGUMENTS common Table
top_of_table
Top of table value from _pt_top_set
DESCRIPTION Compute the allocation size of the top table. For PT_FEAT_DYNAMIC_TOP this will ... |
pt_top_range(9) | NAME pt_top_range - Return a range that spans part of the top level
SYNOPSIS struct pt_range pt_top_range (struct pt_common *common );
ARGUMENTS common Table
DESCRIPTION For PT_FEAT_SIGN_EXTEND this will return the lower range, and cover half the total page table. Otherwise it returns the entire page table.
SE... |
pt_topa_dump(9) | NAME pt_topa_dump - print ToPA tables and their entries
SYNOPSIS void pt_topa_dump (struct pt_buffer *buf );
ARGUMENTS buf PT buffer.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), topa_alloc(9), topa_free(9), topa_insert_table(9), topa_table_full(9), topa_in... |
pt_update_head(9) | NAME pt_update_head - calculate current offsets and sizes
SYNOPSIS void pt_update_head (struct pt *pt );
ARGUMENTS pt Per-cpu pt context.
DESCRIPTION Update buffer's current write pointer position and data size.
SEE ALSO Kernel file ./arch/x86/events/intel/pt.c struct topa(9), struct topa_page(9), t... |
pt_upper_range(9) | NAME pt_upper_range - Return a range that spans part of the top level
SYNOPSIS struct pt_range pt_upper_range (struct pt_common *common );
ARGUMENTS common Table
DESCRIPTION For PT_FEAT_SIGN_EXTEND this will return the upper range, and cover half the total page table. Otherwise it returns the entire page table.... |
pt_walk_range(9) | NAME pt_walk_range - Walk over a VA range
SYNOPSIS int pt_walk_range (struct pt_range *range , pt_level_fn_t fn , void *arg );
ARGUMENTS range Range pointer
fn Walker function to call
arg Value to pass to the function
DESCRIPTION Walk over a VA range. The caller should have don... |
ptar(1) | NAME ptar - a tar-like program written in perl
DESCRIPTION ptar is a small, tar look-alike program that uses the perl module Archive::Tar to extract, create and list tar archives.
SYNOPSIS ptar -c [-v] [-z] [-C] [-f ARCHIVE_FILE | -] FILE FILE ... ptar -c [-v] [-z] [-C] [-T index | -] [-f ARCHIVE_FILE | -] ptar -x [-... |
ptardiff(1) | NAME ptardiff - program that diffs an extracted archive against an unextracted one
DESCRIPTION ptardiff is a small program that diffs an extracted archive against an unextracted one, using the perl module Archive::Tar.
This effectively lets you view changes made to an archives contents.
Provide... |
ptargrep(1) | NAME ptargrep - Apply pattern matching to the contents of files in a tar archive
SYNOPSIS ptargrep [options] <pattern> <tar file> ...
Options:
--basename|-b ignore directory paths from archive
--ignore-case|-i do case-insensitive pattern matching
--list-only|-l list mat... |
ptdesc_address(9) | NAME ptdesc_address - Virtual address of page table.
SYNOPSIS void * ptdesc_address (const struct ptdesc *pt );
ARGUMENTS pt Page table descriptor.
RETURN The first byte of the page table described by pt.
SEE ALSO Kernel file ./include/linux/mm.h folio_page_idx(9), vma_flag_t(9), fault_flag_allow_retry... |
ptdesc_clear_kernel(9) | NAME ptdesc_clear_kernel - Mark a ptdesc as no longer used to map the kernel
SYNOPSIS void ptdesc_clear_kernel (struct ptdesc *ptdesc );
ARGUMENTS ptdesc The ptdesc to be unmarked
DESCRIPTION Use when the ptdesc is no longer used to map the kernel and no longer needs special handling.
SEE ALSO Kernel file ./... |
ptdesc_set_kernel(9) | NAME ptdesc_set_kernel - Mark a ptdesc used to map the kernel
SYNOPSIS void ptdesc_set_kernel (struct ptdesc *ptdesc );
ARGUMENTS ptdesc The ptdesc to be marked
DESCRIPTION Kernel page tables often need special handling. Set a flag so that the handling code knows this ptdesc will not be used for userspace.
SEE... |
ptdesc_test_kernel(9) | NAME ptdesc_test_kernel - Check if a ptdesc is used to map the kernel
SYNOPSIS bool ptdesc_test_kernel (const struct ptdesc *ptdesc );
ARGUMENTS ptdesc The ptdesc being tested
DESCRIPTION Call to tell if the ptdesc used to map the kernel.
SEE ALSO Kernel file ./include/linux/mm.h folio_page_idx(9), vma_flag... |
pte_alloc_one(9) | NAME pte_alloc_one - allocate a page for PTE-level user page table
SYNOPSIS pgtable_t pte_alloc_one (struct mm_struct *mm );
ARGUMENTS mm the mm_struct of the current context
DESCRIPTION Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor.
RETURN `struct page` referencing the ptdesc or ... |
pte_alloc_one_kernel(9) | NAME pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
SYNOPSIS pte_t * pte_alloc_one_kernel (struct mm_struct *mm );
ARGUMENTS mm the mm_struct of the current context
RETURN pointer to the allocated memory or NULL on error
SEE ALSO Kernel file ./include/asm-generic/pgalloc.h __pte_a... |
pte_batch_hint(9) | NAME pte_batch_hint - Number of pages that can be added to batch without scanning.
SYNOPSIS unsigned int pte_batch_hint (pte_t *ptep , pte_t pte );
ARGUMENTS ptep Page table pointer for the entry.
pte Page table entry.
DESCRIPTION Some architectures know that a set of contiguous ptes all map ... |
pte_free(9) | NAME pte_free - free PTE-level user page table memory
SYNOPSIS void pte_free (struct mm_struct *mm , struct page *pte_page );
ARGUMENTS mm the mm_struct of the current context
pte_page the `struct page` referencing the ptdesc
SEE ALSO Kernel file ./include/asm-generic/pgalloc.h __pte_alloc_one_ke... |
pte_free_kernel(9) | NAME pte_free_kernel - free PTE-level kernel page table memory
SYNOPSIS void pte_free_kernel (struct mm_struct *mm , pte_t *pte );
ARGUMENTS mm the mm_struct of the current context
pte pointer to the memory containing the page table
SEE ALSO Kernel file ./include/asm-generic/pgalloc.h __pte_... |
pte_is_marker(9) | NAME pte_is_marker - Does the PTE entry encode a marker leaf entry?
SYNOPSIS bool pte_is_marker (pte_t pte );
ARGUMENTS pte PTE entry.
RETURN true if this PTE is a marker leaf entry, otherwise false.
SEE ALSO Kernel file ./include/linux/leafops.h softleaf_mk_none(9), softleaf_from_pte(9), softleaf_to_pte... |
pte_is_uffd_marker(9) | NAME pte_is_uffd_marker - Does this PTE entry encode a userfault-specific marker leaf entry?
SYNOPSIS bool pte_is_uffd_marker (pte_t pte );
ARGUMENTS pte PTE entry.
DESCRIPTION It's useful to be able to determine which leaf entries encode UFFD-specific markers so we can handle these correctly.
RETURN true i... |
pte_is_uffd_wp_marker(9) | NAME pte_is_uffd_wp_marker - Does this PTE entry encode a userfaultfd write protect marker leaf entry?
SYNOPSIS bool pte_is_uffd_wp_marker (pte_t pte );
ARGUMENTS pte PTE entry.
RETURN true if this PTE is a UFFD WP marker leaf entry, otherwise false.
SEE ALSO Kernel file ./include/linux/leafops.h softleaf_... |
pte_move_swp_offset(9) | NAME pte_move_swp_offset - Move the swap entry offset field of a swap pte forward or backward by delta
SYNOPSIS pte_t pte_move_swp_offset (pte_t pte , long delta );
ARGUMENTS pte The initial pte state; must be a swap entry
delta The direction and the offset we are moving; forward if delta is pos... |
pte_next_swp_offset(9) | NAME pte_next_swp_offset - Increment the swap entry offset field of a swap pte.
SYNOPSIS pte_t pte_next_swp_offset (pte_t pte );
ARGUMENTS pte The initial pte state; must be a swap entry.
DESCRIPTION Increments the swap offset, while maintaining all other fields, including swap type, and any swp pte bits. Th... |
pte_none(9) | NAME pte_none - check if pte is mapped
SYNOPSIS int pte_none (pte_t pte );
ARGUMENTS pte pte_t entry
SEE ALSO Kernel file ./arch/hexagon/include/asm/pgtable.h pmd_none(9), pmd_present(9), pmd_bad(9)
April 2026 ... |
ptep_zap_softleaf_entry(9) | NAME ptep_zap_softleaf_entry - discard a software leaf entry.
SYNOPSIS void ptep_zap_softleaf_entry (struct mm_struct *mm , softleaf_t entry );
ARGUMENTS mm the mm
entry the software leaf entry that needs to be zapped
DESCRIPTION Discards the given software leaf entry. If the leaf entry was an... |
pthread.h(0p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread.h — threads
SYNOPSIS #include <pthread.h>
DESCRIPTION... |
pthread_atfork(3) | NAME pthread_atfork - register fork handlers
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_atfork(typeof(void (void)) *prepare,
typeof(void (void)) *parent,
typeof(void (void)) *child);
DESCRIPTION The pthre... |
pthread_atfork(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_atfork — register fork handlers
SYNOPSIS #include <pth... |
pthread_attr_destroy(3) | NAME pthread_attr_init, pthread_attr_destroy - initialize and destroy thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_init(pthread_attr_t *attr);
int pthread_attr_destroy(pthread_attr_t *attr);
DESCRIPTION The pthread_attr_... |
pthread_attr_destroy(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_destroy, pthread_attr_init — destroy and initializ... |
pthread_attr_getaffinity_np(3) | NAME pthread_attr_setaffinity_np, pthread_attr_getaffinity_np - set/get CPU affinity attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <pthread.h>
int pthread_attr_setaffinity_np(pthre... |
pthread_attr_getdetachstate(3) | NAME pthread_attr_setdetachstate, pthread_attr_getdetachstate - set/get detach state attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate);
int pthread_attr_getdeta... |
pthread_attr_getdetachstate(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getdetachstate, pthread_attr_setdetachstate — get ... |
pthread_attr_getguardsize(3) | NAME pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);
int pthread_attr_getguardsize(c... |
pthread_attr_getguardsize(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getguardsize, pthread_attr_setguardsize — get and ... |
pthread_attr_getinheritsched(3) | NAME pthread_attr_setinheritsched, pthread_attr_getinheritsched - set/get inherit-scheduler attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setinheritsched(pthread_attr_t *attr,
i... |
pthread_attr_getinheritsched(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getinheritsched, pthread_attr_setinheritsched — ge... |
pthread_attr_getschedparam(3) | NAME pthread_attr_setschedparam, pthread_attr_getschedparam - set/get scheduling parameter attributes in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setschedparam(pthread_attr_t *restrict attr,
... |
pthread_attr_getschedparam(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getschedparam, pthread_attr_setschedparam — get an... |
pthread_attr_getschedpolicy(3) | NAME pthread_attr_setschedpolicy, pthread_attr_getschedpolicy - set/get scheduling policy attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
int pthread_attr_getsche... |
pthread_attr_getschedpolicy(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getschedpolicy, pthread_attr_setschedpolicy — get ... |
pthread_attr_getscope(3) | NAME pthread_attr_setscope, pthread_attr_getscope - set/get contention scope attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setscope(pthread_attr_t *attr, int scope);
int pthread_attr_getscope(const pthread_attr... |
pthread_attr_getscope(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getscope, pthread_attr_setscope — get and set the ... |
pthread_attr_getsigmask_np(3) | NAME pthread_attr_setsigmask_np, pthread_attr_getsigmask_np - set/get signal mask attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <pthread.h>
int pthread_attr_setsigmask_np(pthread_at... |
pthread_attr_getstack(3) | NAME pthread_attr_setstack, pthread_attr_getstack - set/get stack attributes in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
int pthread_attr_setstack(size_t stacksize;
pthread_attr_t *attr,
... |
pthread_attr_getstack(3p) | PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME pthread_attr_getstack, pthread_attr_setstack — get and set stac... |
pthread_attr_getstackaddr(3) | NAME pthread_attr_setstackaddr, pthread_attr_getstackaddr - set/get stack address attribute in thread attributes object
LIBRARY POSIX threads library (libpthread, -lpthread)
SYNOPSIS #include <pthread.h>
[[deprecated]]
int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr);
[[depre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.