section 9 · Kernel routines 🧠
87928 pages · page 203 of 440
K (continued)
- kunit_err(9)Prints an ERROR level message associated with @test.✨
- KUNIT_EXPECT_EQ(9)Sets an expectation that @left and @right are equal.✨
- KUNIT_EXPECT_FALSE(9)Makes a test failure when the expression is not false.✨
- KUNIT_EXPECT_GE(9)Expects that @left is greater than or equal to @right.✨
- KUNIT_EXPECT_GT(9)An expectation that @left is greater than @right.✨
- KUNIT_EXPECT_KASAN_RESULT(9)checks whether the executed expression produces a KASAN report; causes a KUnit test failure when the result is different from @fail.✨
- KUNIT_EXPECT_LE(9)Expects that @left is less than or equal to @right.✨
- KUNIT_EXPECT_LT(9)An expectation that @left is less than @right.✨
- KUNIT_EXPECT_MEMEQ(9)Expects that the first @size bytes of @left and @right are equal.✨
- KUNIT_EXPECT_MEMNEQ(9)Expects that the first @size bytes of @left and @right are not equal.✨
- KUNIT_EXPECT_NE(9)An expectation that @left and @right are not equal.✨
- KUNIT_EXPECT_NOT_ERR_OR_NULL(9)Expects that @ptr is not null and not err.✨
- KUNIT_EXPECT_NOT_NULL(9)Expects that @ptr is not null.✨
- KUNIT_EXPECT_NULL(9)Expects that @ptr is null.✨
- KUNIT_EXPECT_PTR_EQ(9)Expects that pointers @left and @right are equal.✨
- KUNIT_EXPECT_PTR_NE(9)Expects that pointers @left and @right are not equal.✨
- KUNIT_EXPECT_STREQ(9)Expects that strings @left and @right are equal.✨
- KUNIT_EXPECT_STRNEQ(9)Expects that strings @left and @right are not equal.✨
- KUNIT_EXPECT_SUPPRESSED_WARNING_COUNT(9)Sets an expectation that the suppressed warning count equals @expected.✨
- KUNIT_EXPECT_TRUE(9)Causes a test failure when the expression is not true.✨
- KUNIT_FAIL(9)Always causes a test to fail when evaluated.✨
- KUNIT_FAIL_AND_ABORT(9)Always causes a test to fail and abort when evaluated.✨
- kunit_fail_current_test(9)If a KUnit test is running, fail it.✨
- kunit_find_named_resource(9)Find a resource using match name.✨
- kunit_find_resource(9)Find a resource using match function/data.✨
- kunit_fwnode_create_software_node(9)Create a kunit-managed software node✨
- kunit_get_current_test(9)Return a pointer to the currently running KUnit test.✨
- kunit_get_resource(9)Hold resource for use. Should not need to be used by most users as we automatically get resources retrieved by kunit_find_resource*().✨
- kunit_info(9)Prints an INFO level message associated with @test.✨
- kunit_is_suppressed_warning(9)Check if warnings are being suppressed by the current KUnit test.✨
- kunit_kcalloc(9)Just like kunit_kmalloc_array(), but zeroes the allocation.✨
- kunit_kfree(9)Like kfree except for allocations managed by KUnit.✨
- kunit_kfree_const(9)conditionally free test managed memory✨
- kunit_kfree_skb(9)Like kfree_skb except for allocations managed by KUnit.✨
- kunit_kmalloc(9)Like kmalloc() except the allocation is *test managed*.✨
- kunit_kmalloc_array(9)Like kmalloc_array() except the allocation is *test managed*.✨
- kunit_kstrdup(9)Duplicates a string into a test managed allocation.✨
- kunit_kstrdup_const(9)Conditionally duplicates a string into a test managed allocation.✨
- kunit_kzalloc(9)Just like kunit_kmalloc(), but zeroes the allocation.✨
- kunit_mark_skipped(9)Marks @test as skipped✨
- kunit_platform_device_add(9)Register a KUnit test managed platform device✨
- kunit_platform_device_alloc(9)Allocate a KUnit test managed platform device✨
- kunit_platform_device_prepare_wait_for_probe(9)Prepare a completion variable to wait for a platform device to probe✨
- kunit_platform_device_register_full(9)Register a KUnit test-managed platform device described by platform device info✨
- kunit_platform_device_unregister(9)Unregister a KUnit-managed platform device✨
- kunit_platform_driver_register(9)Register a KUnit test managed platform driver✨
- kunit_put_resource(9)When caller is done with retrieved resource, kunit_put_resource() should be called to drop reference count. The resource list maintains a reference count on resources, so if no users are utilizing…✨
- kunit_register_params_array(9)Register parameter array for a KUnit test.✨
- kunit_release_action(9)Run a matching action call immediately.✨
- kunit_remove_action(9)Cancel a matching deferred action.✨
- kunit_remove_resource(9)remove resource from resource list associated with test.✨
- kunit_resource_name_match(9)Match a resource with the same name.✨
- kunit_skip(9)Marks @test as skipped✨
- kunit_software_node_register(9)Register a kunit-managed software node✨
- kunit_software_node_register_node_group(9)Register a kunit-managed software node group✨
- KUNIT_STATIC_STUB_REDIRECT(9)call a replacement 'static stub' if one exists✨
- KUNIT_SUCCEED(9)A no-op expectation. Only exists for code clarity.✨
- KUNIT_SUPPRESSED_WARNING_COUNT(9)Returns the suppressed warning count.✨
- kunit_test_init_section_suites(9)used to register one or more &struct kunit_suite containing init functions or init data.✨
- kunit_test_suites(9)used to register one or more &struct kunit_suite with KUnit.✨
- kunit_vm_mmap(9)Allocate KUnit-tracked vm_mmap() area✨
- kunit_warn(9)Prints a WARN level message associated with @test.✨
- kunit_warning_suppress(9)Suppress WARN*() backtraces for the duration of a block.✨
- kunit_zalloc_skb(9)Allocate and initialize a resource managed skb.✨
- kunmap(9)Unmap the virtual address mapped by kmap()✨
- kunmap_atomic(9)Unmap the virtual address mapped by kmap_atomic() - deprecated!✨
- kunmap_high(9)unmap a highmem page into memory✨
- kunmap_local(9)Unmap a page mapped via kmap_local_page().✨
- kvec_array_init(9)initialize a IO vector segment✨
- kvfree(9)Free memory.✨
- kvfree_atomic(9)Free memory.✨
- kvfree_rcu_barrier(9)Wait until all in-flight kvfree_rcu() complete.✨
- kvfree_rcu_barrier_on_cache(9)Wait for in-flight kvfree_rcu() calls on a specific slab cache.✨
- kvfree_sensitive(9)Free a data object containing sensitive information.✨
- kvm_adjust_itstate(9)adjust ITSTATE when emulating instructions in IT- block✨
- kvm_age_gfn(9)clear young✨
- kvm_arch_destroy_vm(9)destroy the VM data structure✨
- kvm_arch_flush_remote_tlbs(9)flush all VM TLB entries for v7/8✨
- kvm_arch_init_vm(9)initializes a VM data structure✨
- kvm_arch_mmu_enable_log_dirty_pt_masked(9)write protect dirty pages✨
- kvm_arch_vcpu_ioctl_run(9)the main VCPU run function to execute guest code✨
- kvm_arch_vcpu_ioctl_set_guest_debug(9)set up guest debugging✨
- kvm_arch_vcpu_pre_fault_memory(9)- pre-fault and link gmap dat tables✨
- kvm_arch_vcpu_runnable(9)determine if the vcpu can be scheduled✨
- kvm_arm_copy_reg_indices(9)get indices of all registers.✨
- kvm_arm_num_regs(9)how many registers do we present via KVM_GET_ONE_REG✨
- kvm_arm_pmu_get_max_counters(9)Return the max number of PMU counters.✨
- kvm_arm_set_default_pmu(9)No PMU set and KVM_ARM_VCPU_PMU_V3_STRICT not set, get the default one.✨
- kvm_arm_setup_mdcr_el2(9)configure vcpu mdcr_el2 value✨
- kvm_clear_dirty_log_protect(9)clear dirty bits in the bitmap and reenable dirty page tracking for the corresponding pages.✨
- kvm_cma_reserve(9)reserve area for kvm hash pagetable✨
- kvm_emulate_cp15_id_reg(9)Handles an MRC trap on a guest CP15 access where CRn=0, which corresponds to the AArch32 feature registers.✨
- kvm_get_badinstr(9)Get bad instruction encoding.✨
- kvm_get_badinstrp(9)Get bad prior instruction encoding.✨
- kvm_get_dirty_log(9)get a snapshot of dirty pages✨
- kvm_get_dirty_log_protect(9)get a snapshot of dirty pages and reenable dirty page tracking for the corresponding pages.✨
- kvm_get_running_vcpu(9)get the vcpu running on the current CPU.✨
- kvm_get_running_vcpus(9)get the per-CPU array of currently running vcpus.✨
- kvm_get_vtcr(9)Helper to construct VTCR_EL2✨
- kvm_gpc_activate(9)prepare a cached kernel mapping and HPA for a given guest physical address.✨
- kvm_gpc_activate_hva(9)prepare a cached kernel mapping and HPA for a given HVA.✨
- kvm_gpc_check(9)check validity of a gfn_to_pfn_cache.✨
- kvm_gpc_deactivate(9)deactivate and unlink a gfn_to_pfn_cache.✨
- kvm_gpc_init(9)initialize gfn_to_pfn_cache.✨
- kvm_gpc_refresh(9)update a previously initialized cache.✨
- kvm_handle_cp10_id(9)Handles a VMRS trap on guest access to a 'Media and VFP Register' from AArch32.✨
- kvm_handle_cp_32(9)- handles a mrc/mcr trap on a guest CP14/CP15 access✨
- kvm_handle_cp_64(9)- handles a mrrc/mcrr trap on a guest CP14/CP15 access✨
- kvm_handle_fpu_disabled(9)Guest used fpu however it is disabled at host✨
- kvm_handle_guest_abort(9)handles all 2nd stage aborts✨
- kvm_handle_guest_debug(9)handle a debug exception instruction✨
- kvm_handle_mmio_return(9)- Handle MMIO loads after user space emulation or in-kernel IO emulation✨
- kvm_handle_sys_reg(9)- handles a system instruction or mrs/msr instruction trap on a guest execution✨
- kvm_handle_wfx(9)handle a wait-for-interrupts or wait-for-event instruction executed by a guest✨
- kvm_init_stage2_mmu(9)Initialise a S2 MMU structure✨
- kvm_inject_dabt_excl_atomic(9)inject a data abort for unsupported exclusive or atomic access✨
- kvm_inject_undefined(9)inject an undefined instruction into the guest✨
- kvm_is_ifetch_fault(9)Find whether a TLBL exception is due to ifetch fault.✨
- kvm_mips_build_enter_guest(9)Assemble code to resume guest execution.✨
- kvm_mips_build_exception(9)Assemble first level guest exception handler.✨
- kvm_mips_build_exit(9)Assemble common guest exit handler.✨
- kvm_mips_build_ret_from_exit(9)Assemble guest exit return handler.✨
- kvm_mips_build_ret_to_guest(9)Assemble code to return to the guest.✨
- kvm_mips_build_ret_to_host(9)Assemble code to return to the host.✨
- kvm_mips_build_tlb_refill_exception(9)Assemble TLB refill handler.✨
- kvm_mips_build_vcpu_run(9)Assemble function to start running a guest VCPU.✨
- kvm_mips_count_disable(9)Disable count.✨
- kvm_mips_count_disable_cause(9)Disable count using CP0_Cause.DC.✨
- kvm_mips_count_disabled(9)Find whether the CP0_Count timer is disabled.✨
- kvm_mips_count_enable_cause(9)Enable count using CP0_Cause.DC.✨
- kvm_mips_count_time(9)Get effective current time.✨
- kvm_mips_count_timeout(9)Push timer forward on timeout.✨
- kvm_mips_entry_setup(9)Perform global setup for entry code.✨
- kvm_mips_flush_gpa_pt(9)Flush a range of guest physical addresses.✨
- kvm_mips_freeze_hrtimer(9)Safely stop the hrtimer.✨
- kvm_mips_init_count(9)Initialise timer.✨
- kvm_mips_ktime_to_count(9)Scale ktime_t to a 32-bit count.✨
- kvm_mips_map_page(9)Map a guest physical page.✨
- kvm_mips_migrate_count(9)Migrate timer.✨
- kvm_mips_mkclean_gpa_pt(9)Make a range of guest physical addresses clean.✨
- kvm_mips_read_count(9)Read the current count value.✨
- kvm_mips_read_count_running(9)Read the current count value as if running.✨
- kvm_mips_restore_hrtimer(9)Restore hrtimer after a gap, updating expiry.✨
- kvm_mips_resume_hrtimer(9)Resume hrtimer, updating expiry.✨
- kvm_mips_set_count_ctl(9)Update the count control KVM register.✨
- kvm_mips_set_count_hz(9)Update the frequency of the timer.✨
- kvm_mips_set_count_resume(9)Update the count resume KVM register.✨
- kvm_mips_walk_pgd(9)Walk page table with optional allocation.✨
- kvm_mips_write_compare(9)Modify compare and update timer.✨
- kvm_mips_write_count(9)Modify the count and update timer.✨
- kvm_mmu_split_memory_region(9)split the stage 2 blocks into PAGE_SIZE pages for memory slot✨
- kvm_mmu_wp_memory_region(9)write protect stage 2 entries for memory slot✨
- kvm_nvhe_unwind_init(9)Start an unwind from the given nVHE HYP fp and pc✨
- kvm_pgd_alloc(9)Allocate and initialise a KVM GPA page directory.✨
- kvm_pgd_init(9)Initialise KVM GPA page directory.✨
- kvm_pgtable_get_leaf(9)Walk a page-table and retrieve the leaf entry with its level.✨
- kvm_pgtable_hyp_destroy(9)Destroy an unused hypervisor stage-1 page- table.✨
- kvm_pgtable_hyp_init(9)Initialise a hypervisor stage-1 page-table.✨
- kvm_pgtable_hyp_map(9)Install a mapping in a hypervisor stage-1 page- table.✨
- kvm_pgtable_hyp_pte_prot(9)Retrieve the protection attributes of a stage-1 Page-Table Entry.✨
- kvm_pgtable_hyp_unmap(9)Remove a mapping from a hypervisor stage-1 page- table.✨
- kvm_pgtable_stage2_annotate(9)Unmap and annotate pages in the IPA space to track ownership (and more).✨
- kvm_pgtable_stage2_create_unlinked(9)Create an unlinked stage-2 paging structure.✨
- kvm_pgtable_stage2_destroy(9)Destroy an unused guest stage-2 page-table.✨
- kvm_pgtable_stage2_destroy_pgd(9)Destroy the PGD of guest stage-2 page- table.✨
- kvm_pgtable_stage2_destroy_range(9)Destroy the unlinked range of addresses.✨
- kvm_pgtable_stage2_free_unlinked(9)Free an unlinked stage-2 paging structure.✨
- kvm_pgtable_stage2_map(9)Install a mapping in a guest stage-2 page- table.✨
- kvm_pgtable_stage2_mkyoung(9)Set the access flag in a page-table entry.✨
- kvm_pgtable_stage2_pgd_size(9)Helper to compute size of a stage-2 PGD✨
- kvm_pgtable_stage2_pte_prot(9)Retrieve the protection attributes of a stage-2 Page-Table Entry.✨
- kvm_pgtable_stage2_relax_perms(9)Relax the permissions enforced by a page-table entry.✨
- kvm_pgtable_stage2_split(9)Split a range of huge pages into leaf PTEs pointing to PAGE_SIZE guest pages.✨
- kvm_pgtable_stage2_test_clear_young(9)Test and optionally clear the access flag in a page-table entry.✨
- kvm_pgtable_stage2_unmap(9)Remove a mapping from a guest stage-2 page- table.✨
- kvm_pgtable_stage2_wrprotect(9)Write-protect guest stage-2 address range without TLB invalidation.✨
- kvm_pgtable_walk(9)Walk a page-table.✨
- kvm_phys_addr_ioremap(9)map a device range to guest IPA✨
- kvm_pmc_is_64bit(9)determine if counter is 64bit✨
- kvm_pmu_create_perf_event(9)create a perf event for a counter✨
- kvm_pmu_flush_hwstate(9)flush pmu state to cpu✨
- kvm_pmu_get_counter_value(9)get PMU counter value✨
- kvm_pmu_handle_pmcr(9)handle PMCR register✨
- kvm_pmu_release_perf_event(9)remove the perf event✨
- kvm_pmu_set_counter_event_type(9)set selected counter to monitor some event✨
- kvm_pmu_set_counter_value(9)set PMU counter value✨
- kvm_pmu_set_counter_value_user(9)set PMU counter value from user✨
- kvm_pmu_software_increment(9)do software increment✨
- kvm_pmu_stop_counter(9)stop PMU counter✨
- kvm_pmu_sync_hwstate(9)sync pmu state from cpu✨
- kvm_pmu_vcpu_destroy(9)free perf event of PMU for cpu✨
- kvm_pmu_vcpu_init(9)assign pmu counter idx for cpu✨
- kvm_psci_call(9)handle PSCI call if r0 value is in range✨
- kvm_reset_sys_regs(9)sets system registers to reset value✨
- kvm_reset_vcpu(9)sets core registers and sys_regs to reset value✨
- kvm_riscv_check_vcpu_requests(9)check and handle pending vCPU requests✨
- kvm_riscv_vcpu_csr_return(9)- Handle CSR read/write after user space emulation or in-kernel emulation✨
- kvm_riscv_vcpu_mmio_load(9)- Emulate MMIO load instruction✨
- kvm_riscv_vcpu_mmio_return(9)- Handle MMIO loads after user space emulation or in-kernel IO emulation✨
- kvm_riscv_vcpu_mmio_store(9)- Emulate MMIO store instruction✨
💅
getting it ready, bestie…