Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tg_set_conf

Proto:static ssize_t tg_set_conf(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off, bool is_u64)

Type:ssize_t

Parameter:

TypeParameterName
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
boolis_u64
1443  blkcg = css_to_blkcg(of_css(of))
1449  ret = lkg_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
1450  If ret Then Return ret
1453  ret = -EINVAL
1454  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 1 Then Go to out_finish
1456  If Not v Then v = U64_MAX
1459  tg = blkg_to_tg(blkg)
1461  If is_u64 Then *(tg + private) = v
1463  Else *(tg + private) = v
1466  tg_conf_updated(tg, false)
1467  ret = 0
1468  out_finish :
1469  lkg_conf_finish - finish up per-blkg config update*@ctx: blkg_conf_ctx intiailized by blkg_conf_prep()* Finish up after per-blkg config update. This function must be paired* with blkg_conf_prep().
1470  Return If ret Else nbytes
Caller
NameDescribe
tg_set_conf_u64
tg_set_conf_uint