Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lkg_conf_prep - parse and prepare for per-blkg config update*@inputp: input string pointer* Parse the device node prefix part, MAJ:MIN, of per-blkg config update* from @input and get and return the matching gendisk. *@inputp is

Proto:struct gendisk *blkcg_conf_get_disk(char **inputp)

Type:struct gendisk

Parameter:

TypeParameterName
char **inputp
590  input = inputp
595  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 2 Then Return ERR_PTR( - EINVAL)
598  input += key_len
599  If Not Note: isspace() must return false for %NUL-terminator ( * input) Then Return ERR_PTR( - EINVAL)
601  input = skip_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.
603  disk = get_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt.
604  If Not disk Then Return ERR_PTR( - ENODEV)
606  If part Then
607  This is a counterpart of get_disk_and_module() and thus also of* get_gendisk().
608  Return ERR_PTR( - ENODEV)
611  inputp = input
612  Return disk
Caller
NameDescribe
blkg_conf_preplkg_conf_prep - parse and prepare for per-blkg config update*@blkcg: target block cgroup*@pol: target policy*@input: input string*@ctx: blkg_conf_ctx to be filled* Parse per-blkg config update from @input and initialize @ctx with the* result
ioc_qos_write
ioc_cost_model_write