Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\backing-dev.c Create Date:2022-07-28 14:24:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:max_ratio_store

Proto:static ssize_t max_ratio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
struct device *dev
struct device_attribute *attr
const char *buf
size_tcount
188  bdi = dev_get_drvdata(dev)
192  ret = kstrtouint - convert a string to an unsigned int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
193  If ret < 0 Then Return ret
196  ret = bdi_set_max_ratio(bdi, ratio)
197  If Not ret Then ret = count
200  Return ret