Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:stop a thread

Proto:int kthread_stop(struct task_struct *k)

Type:int

Parameter:

TypeParameterName
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  Atomically set a bit in memory
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  wake_up_process(k)
559  wait_for_completion( & exited)
560  ret = exit code
561  put_task_struct(k)
563  Tracepoint for the return value of the kthread stopping:
564  Return ret
Caller
NameDescribe
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_irqregister an interrupt
__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
destroy_workqueuedestroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.