Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-28 12:07:38
Last Modify:2020-03-17 19:44:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cmp_entries_key

Proto:static int cmp_entries_key(const struct tracing_map_sort_entry **a, const struct tracing_map_sort_entry **b)

Type:int

Parameter:

TypeParameterName
const struct tracing_map_sort_entry **a
const struct tracing_map_sort_entry **b
884  ret = 0
886  elt_a = elt
887  elt_b = elt
889  sort_key = sort_key
891  field = fields[field_idx]
893  cmp_fn = cmp_fn
895  val_a = key + offset
896  val_b = key + offset
898  ret = cmp_fn(val_a, val_b)
899  If descending Then ret = -ret
902  Return ret