Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_firmware_init

Proto:static int __init test_firmware_init(void)

Type:int

Parameter:Nothing

930  test_fw_config = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
931  If Not test_fw_config Then Return -ENOMEM
934  rc = __test_firmware_config_init()
935  If rc Then
936  kfree(test_fw_config)
937  pr_err("could not init firmware test config: %d\n", rc)
938  Return rc
941  rc = register a miscellaneous device
942  If rc Then
943  kfree(test_fw_config)
944  pr_err("could not register misc device: %d\n", rc)
945  Return rc
948  pr_warn("interface ready\n")
950  Return 0