Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parman_lsort_item_add

Proto:static int parman_lsort_item_add(struct parman *parman, struct parman_prio *prio, struct parman_item *item)

Type:int

Parameter:

TypeParameterName
struct parman *parman
struct parman_prio *prio
struct parman_item *item
190  If count + 1 > limit_count Then
191  err = parman_enlarge(parman)
192  If err Then Return err
196  new_index = parman_lsort_new_index_find(parman, prio)
198  If prio2 == prio Then Break
200  parman_prio_shift_down(parman, prio2)
202  index = new_index
203  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
204  count++
205  Return 0