函数逻辑报告 |
Source Code:mm\percpu.c |
Create Date:2022-07-27 15:52:01 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:释放内存
函数原型:void free_percpu(void __percpu *ptr)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
void __percpu * | ptr |
1961 | bool need_balance = false |
1963 | 如果非ptr则返回 |
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 | 如果 free bytes in the chunk 恒等于pcpu_unit_size则 |
1983 | need_balance = true |
1984 | 退出 |
1990 | spin_unlock_irqrestore( & pcpu_lock, flags) |
1992 | 如果need_balance则pcpu_schedule_balance_work() |
名称 | 描述 |
---|---|
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 |
msrs_free | |
ffh_cstate_exit | |
schedule_on_each_cpu | schedule_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. |
sbitmap_queue_free | sbitmap_queue_free() - Free memory used by a &struct sbitmap_queue.*@sbq: Bitmap queue to free. |
blk_stat_free_callback_rcu | |
free_ioctx | _ioctx() should be RCU delayed to synchronize against the RCU* protected lookup_ioctx() and also needs process context to call* aio_free_ring(). Use rcu_work. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |