Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:taskstats_tgid_alloc

Proto:static struct taskstats *taskstats_tgid_alloc(struct task_struct *tsk)

Type:struct taskstats

Parameter:

TypeParameterName
struct task_struct *tsk
556  sig = Signal handlers:
560  stats = smp_load_acquire( & stats)
561  If stats || thread_group_empty(tsk) Then Return stats
565  stats_new = Shortcuts
567  spin_lock_irq( & siglock)
568  stats = stats
569  If Not stats Then
574  smp_store_release( & stats, stats_new)
575  stats = stats_new
576  stats_new = NULL
578  spin_unlock_irq( & siglock)
580  If stats_new Then kmem_cache_free - Deallocate an object*@cachep: The cache the allocation was from.*@objp: The previously allocated object.* Free an object which was previously allocated from this* cache.
583  Return stats
Caller
NameDescribe
taskstats_exitSend pid data out on exit