函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tg_set_conf

函数原型:static ssize_t tg_set_conf(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off, bool is_u64)

返回类型:ssize_t

参数:

类型参数名称
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  如果ret则返回:ret
1453  ret等于负EINVAL
1454  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于1则转到:out_finish
1456  如果非vv等于U64_MAX
1459  tg等于blkg_to_tg(blkg)
1461  如果is_u64则*tgprivate的和等于v
1463  否则*tgprivate的和等于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  返回:如果ret否则nbytes
调用者
名称描述
tg_set_conf_u64
tg_set_conf_uint