Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:objagg_tmp_graph_create

Proto:static struct objagg_tmp_graph *objagg_tmp_graph_create(struct objagg *objagg)

Type:struct objagg_tmp_graph

Parameter:

TypeParameterName
struct objagg *objagg
779  nodes_count = obj_count
787  graph = 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).
788  If Not graph Then Return NULL
791  nodes = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
792  If Not nodes Then Go to err_nodes_alloc
794  nodes_count = nodes_count
796  alloc_size = BITS_TO_LONGS(nodes_count * nodes_count) * sizeof(unsignedlong)
798  edges = 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).
799  If Not edges Then Go to err_edges_alloc
802  i = 0
804  node = nodes[i++]
805  objagg_obj = objagg_obj
811  When i < nodes_count cycle
812  When j < nodes_count cycle
813  If i == j Then Continue
815  pnode = nodes[i]
816  node = nodes[j]
817  If delta_check(priv, obj, obj) Then
825  Return graph
827  err_edges_alloc :
828  kfree(nodes)
829  err_nodes_alloc :
830  kfree(graph)
831  Return NULL
Caller
NameDescribe
objagg_opt_simple_greedy_fillup_hints