Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-28 17:57:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bfq_init_bfqq

Proto:static void bfq_init_bfqq(struct bfq_data *bfqd, struct bfq_queue *bfqq, struct bfq_io_cq *bic, pid_t pid, int is_sync)

Type:void

Parameter:

TypeParameterName
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  Initialization list head
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  If bic Then Update the entity prio values; note that the new values will not* be used until the next (re)activation.
5062  If is_sync Then
5068  If Not bfq_class_idle(bfqq) Then bfq_mark_bfqq_has_short_ttime(bfqq)
5071  bfq_mark_bfqq_sync(bfqq)
5072  bfq_mark_bfqq_just_created(bfqq)
5073  Else 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
Caller
NameDescribe
bfq_get_queue
bfq_init_queue