Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cpu.h Create Date:2022-07-28 05:56:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_online_cpus

Proto:static inline void get_online_cpus(void)

Type:void

Parameter:Nothing

137  cpus_read_lock()
Caller
NameDescribe
mtrr_add_pagemtrr_add_page - Add a memory type region*@base: Physical base address of region in pages (in units of 4 kB!)*@size: Physical size of region in pages (4 kB)*@type: Type of MTRR desired*@increment: If this is true do usage counting on the region* Memory
mtrr_del_pagemtrr_del_page - delete a memory type region*@reg: Register returned by mtrr_add*@base: Physical base address*@size: Size of region* If register is supplied then base and size are ignored. This is* how drivers should call it.* Releases an MTRR region
reload_store
microcode_init
schedule_on_each_cpuschedule_on_each_cpu - execute a function synchronously on each online CPU*@func: the function to call* schedule_on_each_cpu() executes @func on each online CPU using the* system workqueue and blocks until all CPUs have completed.
apply_wqattrs_lock
alloc_and_link_pwqs
smpboot_register_percpu_threadsmpboot_register_percpu_thread - Register a per_cpu thread related* to hotplug*@plug_thread: Hotplug thread descriptor* Creates and starts the threads on all online cpus.
smpboot_unregister_percpu_threadsmpboot_unregister_percpu_thread - Unregister a per_cpu thread related to hotplug*@plug_thread: Hotplug thread descriptor* Stops all threads on all possible cpus.
s2idle_enter
irq_build_affinity_masksld affinity in two stages:* 1) spread present CPU on these vectors* 2) spread other possible CPUs on these vectors
irq_calc_affinity_vectorsq_calc_affinity_vectors - Calculate the optimal number of vectors*@minvec: The minimum number of vectors available*@maxvec: The maximum number of vectors available*@affd: Description of the affinity requirements
rcu_barrier_barrier - Wait until all in-flight call_rcu() callbacks complete
klp_try_complete_transitionTry to switch all remaining tasks to the target patch state by walking the* stacks of sleeping tasks and looking for any to-be-patched or* to-be-unpatched functions. If such functions are found, the task can't be* switched yet.
rebuild_sched_domains
cpuset_write_u64
cpuset_write_s64
cpuset_write_resmaskCommon handling for a write to a "cpus" or "mems" file.
sched_partition_write
cpuset_css_online
cpuset_css_offlineIf the cpuset being removed has its flag 'sched_load_balance'* enabled, then simulate turning sched_load_balance off, which* will call rebuild_sched_domains_locked(). That is not needed* in the default hierarchy where only changes in partition
ring_buffer_resizeg_buffer_resize - resize the ring buffer*@buffer: the buffer to resize.*@size: the new size.*@cpu_id: the cpu buffer to resize* Minimum size is 2 * BUF_PAGE_SIZE.* Returns 0 on success and < 0 on failure.
move_to_next_cpu
start_kthreadstart_kthread - Kick off the hardware latency sampling/detector kthread* This starts the kernel thread that will sit and sample the CPU timestamp* counter (TSC or similar) and look for potential hardware latencies.
register_wide_hw_breakpoint a set of per_cpu pointers to perf events
padata_set_cpumaskpadata_set_cpumask: Sets specified by @cpumask_type cpumask to the value* equivalent to @cpumask
padata_allocpadata_alloc - allocate and initialize a padata instance and specify* cpumasks for serial and parallel workers
padata_alloc_shellpadata_alloc_shell - Allocate and initialize padata shell.*@pinst: Parent padata_instance object.
torture_shuffle_tasksShuffle tasks such that we allow shuffle_idle_cpu to become idle.* A special case is when shuffle_idle_cpu = -1, in which case we allow* the tasks to run on all CPUs.
kmem_cache_create_usercopykmem_cache_create_usercopy - Create a cache with a region suitable* for copying to userspace*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.
kmem_cache_destroy
kmem_cache_shrinkkmem_cache_shrink - Shrink a cache.*@cachep: The cache to shrink.* Releases as many slabs as possible for a cache.* To help debugging, a zero exit status indicates all slabs were released.* Return: %0 if all slabs were released, non-zero otherwise
kmem_cache_shrink_allkmem_cache_shrink_all - shrink a cache and all memcg caches for root cache*@s: The cache pointer
disable_swap_slots_cache_lockMust not be called with cpu hot plug lock