函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:adblocks_store() - sysfs access to bad-blocks list*@bb: the badblocks structure that holds all badblock information*@page: buffer received from sysfs*@len: length of data received from sysfs*@unack: weather to show unacknowledged badblocks* Return:

函数原型:ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, int unack)

返回类型:ssize_t

参数:

类型参数名称
struct badblocks *bb
const char *page
size_tlen
intunack
525  :sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments恒等于3
526  如果newline不等于'\n'则返回:负EINVAL
529  :sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments恒等于2
530  如果length小于等于0则返回:负EINVAL
532  退出
533  默认
534  返回:负EINVAL
537  如果adblocks_set() - Add a range of bad blocks to the table则返回:负ENOSPC
539  否则返回:len