函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-27 19:32:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bfq_init_bfqq

函数原型:static void bfq_init_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq, struct bfq_io_cq *bic, pid_t pid, int is_sync)

返回类型:void

参数:

类型参数名称
struct bfq_data *bfqd
struct bfq_queue *bfqq
struct bfq_io_cq *bic
pid_tpid
intis_sync
5050  RB_CLEAR_NODE( & service_tree member )
5051  初始化链表头
5052  INIT_HLIST_NODE( & de for the device's burst list )
5053  INIT_HLIST_NODE( & de for woken_list, see below )
5054  INIT_HLIST_HEAD( & Head of the list of the woken queues for this queue, i.e.,* of the list of the queues for which this queue is a waker* queue. This list is used to reset the waker_bfqq pointer in* the woken queues when this queue exits.)
5056  ce counter 等于0
5057  parent bfq_data 等于bfqd
5059  如果bicUpdate the entity prio values; note that the new values will not* be used until the next (re)activation.
5062  如果is_sync
5068  如果非bfq_class_idle(bfqq)则bfq_mark_bfqq_has_short_ttime(bfqq)
5071  bfq_mark_bfqq_sync(bfqq)
5072  bfq_mark_bfqq_just_created(bfqq)
5073  否则bfq_clear_bfqq_sync(bfqq)
5077  completion time of the last request 等于ktime_get_ns()加1
5079  bfq_mark_bfqq_IO_bound(bfqq)
5081  pid of the process owning the queue, used for logging purposes 等于pid
5084  maximum budget allowed from the feedback mechanism 等于2乘If enough samples have been computed, return the current max budget* stored in bfqd, which is dynamically updated according to the* estimated disk peak rate; otherwise return the default max budget除3
5085  udget expiration (in jiffies) 等于Return the farthest past time instant according to jiffies* macros.
5087  actor by which the weight of this queue is multiplied 等于1
5088  Start time of the current weight-raising period if* the @bfq-queue is being weight-raised, otherwise* finish time of the last weight-raising period.等于jiffies
5089  Value of wr start time when switching to soft rt等于Return the farthest past time instant according to jiffies* macros.
5090  ime of last split 等于Return the farthest past time instant according to jiffies* macros.
5101  Minimum time instant such that, only if a new request is* enqueued after this time instant in an idle @bfq_queue with* no outstanding requests, then the task associated with the* queue it is deemed as soft real-time (see the comments on* the function 等于jiffies
5104  vector: a 1 for each seeky requests in history 等于1
调用者
名称描述
bfq_get_queue
bfq_init_queue