Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_opt_simple_greedy_fillup_hints

Proto:static int objagg_opt_simple_greedy_fillup_hints(struct objagg_hints *objagg_hints, struct objagg *objagg)

Type:int

Parameter:

TypeParameterName
struct objagg_hints *objagg_hints
struct objagg *objagg
852  graph = objagg_tmp_graph_create(objagg)
853  If Not graph Then Return -ENOMEM
859  When (index = objagg_tmp_graph_node_max_weight(graph)) != -1 cycle
860  node = nodes[index]
861  crossed_out = true
862  hnode = objagg_hints_node_create(objagg_hints, objagg_obj, obj_size, NULL)
866  If IS_ERR(hnode) Then
867  err = PTR_ERR(hnode)
868  Go to out
870  parent_hnode = hnode
871  When j < nodes_count cycle
872  If Not objagg_tmp_graph_is_edge(graph, index, j) Then Continue
874  node = nodes[j]
875  If crossed_out Then Continue
877  crossed_out = true
882  If IS_ERR(hnode) Then
883  err = PTR_ERR(hnode)
884  Go to out
889  err = 0
890  out :
891  objagg_tmp_graph_destroy(graph)
892  Return err