Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:elv_iosched_show

Proto:ssize_t elv_iosched_show(struct request_queue *q, char *name)

Type:ssize_t

Parameter:

TypeParameterName
struct request_queue *q
char *name
779  e = elevator
780  struct elevator_type * elv = NULL
782  len = 0
784  If Not queue_is_mq(q) Then Return sprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@fmt: The format string to use*@...: Arguments for the format string* The function returns the number of characters written* into @buf
787  If Not elevator Then len += sprintf(name + len, "[none] ")
789  Else elv = type
792  spin_lock( & elv_list_lock)
794  If elv && levator_match - Test an elevator name and features*@e: Scheduler to test*@name: Elevator name to test*@required_features: Features that the elevator must provide* Return true is the elevator @e name matches @name and if @e provides all the Then
795  len += sprintf(name + len, "[%s] ", elevator_name)
796  Continue
798  If elv_support_iosched(q) && levator_match - Test an elevator name and features*@e: Scheduler to test*@name: Elevator name to test*@required_features: Features that the elevator must provide* Return true is the elevator @e name matches @name and if @e provides all the Then len += sprintf(name + len, "%s ", elevator_name)
803  spin_unlock( & elv_list_lock)
805  If elevator Then len += sprintf(name + len, "none")
808  len += sprintf(len + name, "\n")
809  Return len