函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:disk_events_poll_msecs_store

函数原型:static ssize_t disk_events_poll_msecs_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct device *dev
struct device_attribute *attr
const char *buf
size_tcount
1949  disk等于dev_to_disk(dev)
1952  如果非count或非sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments则返回:负EINVAL
1955  如果intv小于0且intv不等于负1则返回:负EINVAL
1958  如果非ev则返回:负ENODEV
1961  disk_block_events - block and flush disk event checking*@disk: disk to block events for* On return from this function, it is guaranteed that event checking* isn't in progress and won't happen until unblocked by* disk_unblock_events()
1962  poll_msecs等于intv
1963  __disk_unblock_events(disk, true)
1965  返回:count