Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:preemptirq_delay_init

Proto:static int __init preemptirq_delay_init(void)

Type:int

Parameter:Nothing

154  test_task = preemptirq_start_test()
155  retval = PTR_ERR_OR_ZERO(test_task)
156  If retval != 0 Then Return retval
159  preemptirq_delay_kobj = kobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
161  If Not preemptirq_delay_kobj Then Return -ENOMEM
164  retval = sysfs_create_group(preemptirq_delay_kobj, & attr_group)
165  If retval Then kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
168  Return retval