Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fwnode_pointer

Proto:static void __init fwnode_pointer(void)

Type:void

Parameter:Nothing

600  const struct software_node softnodes[] = {{name = "first", }, {name = "second", parent = & softnodes[0], }, {name = "third", parent = & softnodes[1], }, {NULL}}
606  full_name = "first/second/third"
607  full_name_second = "first/second"
608  second_name = "second"
609  third_name = "third"
612  rval = software_node_register_nodes(softnodes)
613  If rval Then
614  pr_warn("cannot register softnodes; rval %d\n", rval)
615  Return
618  test(full_name_second, "%pfw", software_node_fwnode( & softnodes[1]))
619  test(full_name, "%pfw", software_node_fwnode( & softnodes[2]))
620  test(full_name, "%pfwf", software_node_fwnode( & softnodes[2]))
621  test(second_name, "%pfwP", software_node_fwnode( & softnodes[1]))
622  test(third_name, "%pfwP", software_node_fwnode( & softnodes[2]))
624  software_node_unregister_nodes(softnodes)
Caller
NameDescribe
test_pointer