Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:27:32 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:free previously allocated percpu memory
Proto:void free_percpu(void __percpu *ptr)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
void __percpu * | ptr |
1961 | bool need_balance = false |
1963 | If Not ptr Then Return |
1966 | kmemleak_free_percpu(ptr) |
1968 | addr = __pcpu_ptr_to_addr(ptr) |
1970 | spin_lock_irqsave( & pcpu_lock, flags) |
1973 | off = addr - base address of this chunk |
1978 | If free bytes in the chunk == pcpu_unit_size Then |
1983 | need_balance = true |
1984 | Break |
1990 | spin_unlock_irqrestore( & pcpu_lock, flags) |
1992 | If need_balance Then pcpu_schedule_balance_work() |
Name | Describe |
---|---|
pcpu_alloc_test | |
percpu_counter_destroy | |
sbitmap_queue_init_node | |
rcu_free_wq | |
__free_domain_allocs | |
__sdt_free | |
cpuacct_css_alloc | Create a new CPU accounting group |
cpuacct_css_free | Destroy an existing CPU accounting group |
psi_cgroup_free | |
percpu_free_rwsem | |
irq_timings_free | |
irq_timings_alloc | |
cleanup_srcu_struct | leanup_srcu_struct - deconstruct a sleep-RCU structure*@ssp: structure to clean up.* Must invoke this after you are finished using a given srcu_struct that* was initialized via init_srcu_struct(), else you leak memory. |
smpcfd_dead_cpu | |
cgroup_rstat_exit | |
free_trace_buffer | |
graph_trace_close | |
perf_trace_event_reg | |
perf_trace_event_unreg | |
free_trace_kprobe | |
uprobe_buffer_init | |
uprobe_buffer_disable | |
__bpf_prog_free | |
htab_free_elems | |
htab_elem_free | |
htab_map_free | Called when map->refcnt goes to zero, either from workqueue or from syscall |
bpf_array_free_percpu | |
pcpu_freelist_destroy | |
bpf_lru_destroy | |
free_percpu_cgroup_storage_rcu | |
dev_map_init_map | |
dev_map_free | |
__dev_map_entry_free | |
__dev_map_alloc_node | |
cpu_map_alloc | |
__cpu_map_entry_alloc | |
__cpu_map_entry_free | |
cpu_map_free | |
xsk_map_free | |
free_pmu_context | |
perf_pmu_register | |
perf_pmu_unregister | |
unregister_wide_hw_breakpoint | register_wide_hw_breakpoint - unregister a wide breakpoint in the kernel*@cpu_events: the per cpu set of events to unregister |
padata_alloc_pd | Allocate and initialize the internal cpumask dependend resources. |
padata_free_pd | |
zone_pcp_reset | |
SYSCALL_DEFINE1 | |
SYSCALL_DEFINE2 | |
zswap_pool_create | |
zswap_pool_destroy | |
__kmem_cache_release | |
__do_tune_cpucache | Always called with the slab_mutex held |
__kmem_cache_release | |
rollback_node_hotadd | |
alloc_mem_cgroup_per_node_info | |
free_mem_cgroup_per_node_info | |
__mem_cgroup_free | |
z3fold_create_pool | z3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed. |
blk_mq_sysfs_release | |
blkg_free | lkg_free - free a blkg*@blkg: blkg to free* Free @blkg which may be partially allocated. |
blk_throtl_init | |
blk_throtl_exit | |
iolatency_pd_free | |
ioc_rqos_exit | |
blk_iocost_init | |
kyber_queue_data_alloc | |
kyber_exit_sched | |
ioctx_alloc | x_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed. |
percpu_ref_exit | percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref |
sbitmap_queue_free | sbitmap_queue_free() - Free memory used by a &struct sbitmap_queue.*@sbq: Bitmap queue to free. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |