函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-27 10:30:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:结束线程的运行

函数原型:int kthread_stop(struct task_struct *k)

返回类型:int

参数:

类型参数名称
struct task_struct *k
552  Tracepoint for calling kthread_stop, performed to end a kthread:
554  get_task_struct(k)
555  kthread等于to_kthread(k)
556  设置内存位
557  kthread_unpark - unpark a thread created by kthread_create().*@k: thread created by kthread_create().* Sets kthread_should_park() for @k to return false, wakes it, and* waits for it to return. If the thread is marked percpu then its
558  唤醒中断线程
559  wait_for_completion( & exited)
560  ret等于进程退出时发出的标号
561  put_task_struct(k)
563  Tracepoint for the return value of the kthread stopping:
564  返回:ret
调用者
名称描述
test_rht_init
test_dev_kmod_stop_tests
kthread_destroy_workerkthread_destroy_worker - destroy a kthread worker*@worker: worker to be destroyed* Flush and destroy @worker. The simple flush is enough because the kthread* worker API is used only in trivial scenarios. There are no multi-step state* machines needed.
smpboot_destroy_threads
sugov_kthread_create
sugov_kthread_stop
save_image_lzosave_image_lzo - Save the suspend image data compressed with LZO.*@handle: Swap map handle to use for saving the image.*@snapshot: Image to read data from.*@nr_to_write: Number of pages to save.
load_image_lzoload_image_lzo - Load compressed image data and decompress them with LZO.*@handle: Swap map handle to use for loading data.*@snapshot: Image to copy uncompressed data into.*@nr_to_read: Number of pages to load.
__setup_irq注册中断
__free_irqInternal function to unregister an irqaction - used to free* regular and special interrupts that are part of the architecture.
ring_buffer_benchmark_init
ring_buffer_benchmark_exit
stop_kthreadstop_kthread - Inform the hardware latency samping/detector kthread to stop* This kicks the running hardware latency sampling/detector kernel thread and* tells it to stop sampling now. Use this on unload and at system shutdown.
trace_benchmark_unregWhen the benchmark tracepoint is disabled, it calls this* function and the thread that calls the tracepoint is deleted* and all the numbers are reset.
cpu_map_kthread_stopalled from workqueue, to workaround syscall using preempt_disable
torture_shuffle_cleanupStop the shuffling.
torture_shutdown_cleanupShut down the shutdown task. Say what??? Heh! This can happen if* the torture module gets an rmmod before the shutdown time arrives. ;-)
torture_stutter_cleanupCleanup after the torture_stutter kthread.
_torture_stop_kthreadStop a generic kthread, emitting a message.
start_stop_khugepaged
stop_scan_threadStop the automatic memory scanning thread.
io_wq_destroy
do_concurrent_test
apm_exit
destroy_workqueuedestroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
kswapd_stopCalled by memory hotplug when all memory in a node is offlined. Caller must* hold mem_hotplug_begin/end().
io_sq_thread_stop