函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\workqueue.h Create Date:2022-07-27 06:39:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise

函数原型:static inline bool schedule_work(struct work_struct *work)

返回类型:bool

参数:

类型参数名称
struct work_struct *work
552  返回:queue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
调用者
名称描述
rht_deferred_worker
rhashtable_insert_rehash
rhashtable_insert_one
once_disable_jump
net_dim
rdma_dim
mce_schedule_work
mmdrop_async
mmput_async
put_pwqput_pwq - put a pool_workqueue reference*@pwq: pool_workqueue to put* Drop a reference of @pwq. If its refcnt reaches zero, schedule its* destruction. The caller should be holding the matching pool->lock.
execute_in_process_contextxecute_in_process_context - reliably execute the routine with user context*@fn: the function to execute*@ew: guaranteed storage for the execute work structure (must* be available when the work executes)* Executes the function immediately if process
free_pid
ctrl_alt_delThis function gets called by ctrl-alt-del - ie the keyboard interrupt.* As it's called within an interrupt, it may NOT sync: the only choice* is whether to reboot at once, or just ignore the ctrl-alt-del.
orderly_poweroffrderly_poweroff - Trigger an orderly system poweroff*@force: force poweroff if command execution fails* This may be called from any context to trigger a system shutdown.* If the orderly shutdown fails, it will force an immediate shutdown.
orderly_rebootrderly_reboot - Trigger an orderly system reboot* This may be called from any context to trigger a system reboot.* If the orderly reboot fails, it will force an immediate reboot.
__test_mutex
test_abba
srcu_drive_gpWorkqueue handler to drive one grace period and invoke any callbacks* that become ready as a result. Single-CPU and !PREEMPT operation* means that we get away with murder on synchronization. ;-)
call_srcuEnqueue an SRCU callback on the specified srcu_struct structure,* initiating grace-period processing if it is not already running.
srcu_initQueue work for srcu_struct structures with early boot callbacks.* The work won't actually execute until the workqueue initialization* phase that takes place after the scheduler starts.
klp_free_patch_async
do_init_moduleThis is where the real work happens.* Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb* helper command 'lx-symbols'.
acct_pin_kill
cgroup1_check_for_release
cpuset_update_active_cpus
cpuset_track_online_nodesKeep top_cpuset.mems_allowed tracking node_states[N_MEMORY].* Call this routine anytime after node_states[N_MEMORY] changes.* See cpuset_update_active_cpus() for CPU hotplug handling.
__put_user_ns
bpf_prog_freeFree internal BPF program
__bpf_map_putdecrement map refcnt and schedule it for freeing via workqueue* (unrelying map implementation ops->map_free() might sleep)
prog_array_map_clear
__cpu_map_entry_replaceAfter xchg pointer to bpf_cpu_map_entry, use the call_rcu() to* ensure any driver rcu critical sections have completed, but this* does not guarantee a flush has happened yet. Because driver side* rcu_read_lock/unlock only protects the running XDP program
pcpu_schedule_balance_work
shutdown_cache
__vfree_deferred
swap_cluster_schedule_discardAdd a cluster to discard list and schedule it to do discard
__zswap_pool_empty
free_huge_page
try_charge
memcg_event_wakeGets called on EPOLLHUP on eventfd when user closes it.* Called with wqh->lock held and interrupts disabled.
mem_cgroup_css_offline
vmpressurevmpressure() - Account memory pressure through scanned/reclaimed ratio*@gfp: reclaimer's gfp mask*@memcg: cgroup memory controller handle*@tree: legacy subtree mode*@scanned: number of pages scanned*@reclaimed: number of pages reclaimed* This function
kmemleak_disable
kmemleak_late_initLate initialization function.
bio_check_pages_dirty
blk_release_queue
key_schedule_gcSchedule a garbage collection run.* - time precision isn't particularly important
key_schedule_gc_linksSchedule a dead links collection run.
key_gc_keytypeReap keys of dead type.* We use three flags to make sure we see three complete cycles of the garbage* collector: the first to mark keys of that type as being dead, the second to* collect dead links and the third to clean up the dead keys. We have to be
key_garbage_collectorReaper for unused keys.
key_putkey_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
aa_loaddata_kref
yama_ptracer_delyama_ptracer_del - remove exceptions related to the given tasks*@tracer: remove any relation where tracer task matches*@tracee: remove any relation where tracee task matches
destroy_super_rcu
emergency_remount
emergency_thaw_allmergency_thaw_all -- forcibly thaw every frozen filesystem* Used for emergency unfreeze of all filesystems via SysRq
emergency_sync
aio_fsync
aio_poll_cancelassumes we are called with irqs disabled
aio_poll_wake
mb_cache_entry_createmb_cache_entry_create - create entry in cache*@cache - cache where the entry should be created*@mask - gfp mask with which the entry should be allocated*@key - key of the entry*@value - value of the entry*@reusable - is the entry reusable by others?
stop_one_cpu_nowait
__rhashtable_insert_fastInternal function, please use rhashtable_insert_fast() instead. This* function returns the existing element already in hashes in there is a clash,* otherwise it returns an error via ERR_PTR().
__rhashtable_remove_fast_oneInternal function, please use rhashtable_remove_fast() instead